| | |
| | | @Override |
| | | public ResultUtil process(Integer orderId, Integer state, Double lon, Double lat, String address,String phone, Integer language) throws Exception { |
| | | OrderPrivateCar orderPrivateCar = this.selectById(orderId); |
| | | // if(state==5){ |
| | | // UserInfo userInfo = userInfoMapper.selectById(orderPrivateCar.getUserId()); |
| | | // if(!userInfo.getPhone().substring(7, userInfo.getPhone().length()).equals(phone)){ |
| | | // return ResultUtil.error("手机号错误"); |
| | | // } |
| | | // } |
| | | if(orderPrivateCar.getState().compareTo(state) == 0){ |
| | | return ResultUtil.error(language == 1 ? "不能重复操作" : language == 2 ? "Unable to recur operate" : "Impossible de récurrence des opérer"); |
| | | } |
| | | if(state==3 && orderPrivateCar.getState()!=2){ |
| | | return ResultUtil.error(language == 1 ? "当前订单不能触发前往预约地点" : language == 2 ? "The current order cannot trigger travel to the reservation" : "La commande en cours ne peut pas déclencher une visite au lieu de rendez-vous"); |
| | | } |
| | | if(state==4 && orderPrivateCar.getState()!=3){ |
| | | return ResultUtil.error(language == 1 ? "当前订单不能到达预约地点" : language == 2 ? "The current order cannot arrive at the reservation" : "La commande en cours ne peut pas atteindre le rendez-vous"); |
| | | } |
| | | /*if(state==5 && orderPrivateCar.getState()!=4){ |
| | | return ResultUtil.error("当前订单不能开始服务"); |
| | | }*/ |
| | | switch (state){ |
| | | case 3://出发前往预约点 |
| | | orderPrivateCar.setState(3); |