| | |
| | | // orderLogistics.setBindId(""); |
| | | // } |
| | | this.updateById(orderLogistics); |
| | | |
| | | //回滚司机状态为空闲 |
| | | Driver driver = driverService.selectById(orderLogistics.getDriverId()); |
| | | driver.setState(2); |
| | | driverService.updateById(driver); |
| | | |
| | | //修改行程数据 |
| | | Car car = carService.selectById(orderLogistics.getCarId()); |
| | | boolean updateTrip = fleetEngineUtil.updateTrip("COMPLETE", car.getVehicleId(), null, orderLogistics.getTripId(), null, null, null, null, orderLogistics.getId(), 4); |
| | |
| | | systemNoticeService.addSystemNotice(1, language1 == 1 ? "司机已结束本次行程,谢谢使用" : language1 == 2 ? |
| | | "The driver has finished the trip,thank you for using I-GO" : "Le chauffeur a terminé le trajet, merci d'utiliser I-GO", orderLogistics.getUserId()); |
| | | |
| | | //回滚司机状态为空闲 |
| | | Driver driver = driverService.selectById(orderLogistics.getDriverId()); |
| | | driver.setState(2); |
| | | driverService.updateById(driver); |
| | | |
| | | OrderLogistics finalOrderTaxi = orderLogistics; |
| | | new Thread(new Runnable() { |
| | |
| | | // } |
| | | this.updateById(orderPrivateCar); |
| | | |
| | | //回滚司机状态为空闲 |
| | | Driver driver = driverService.selectById(orderPrivateCar.getDriverId()); |
| | | driver.setState(2); |
| | | driverService.updateById(driver); |
| | | |
| | | //修改行程数据 |
| | | Car car = carService.selectById(orderPrivateCar.getCarId()); |
| | | boolean updateTrip = fleetEngineUtil.updateTrip("COMPLETE", car.getVehicleId(), null, orderPrivateCar.getTripId(), null, null, null, null, orderPrivateCar.getId(), 1); |
| | |
| | | systemNoticeService.addSystemNotice(1, language1 == 1 ? "司机已结束本次行程,谢谢使用" : language1 == 2 ? |
| | | "The driver has finished the trip,thank you for using I-GO" : "Le chauffeur a terminé le trajet, merci d'utiliser I-GO", orderPrivateCar.getUserId()); |
| | | |
| | | //回滚司机状态为空闲 |
| | | Driver driver = driverService.selectById(orderPrivateCar.getDriverId()); |
| | | driver.setState(2); |
| | | driverService.updateById(driver); |
| | | |
| | | |
| | | OrderPrivateCar finalOrderTaxi = orderPrivateCar; |
| | | new Thread(new Runnable() { |
| | |
| | | if (time == 5 && !StringUtils.hasLength(insertTime)){ |
| | | incomes = tIncomeService.selectList(new EntityWrapper<Income>() |
| | | .eq("userType", 1) |
| | | .eq("objectId",1) |
| | | .eq(null != company, "objectId",company) |
| | | .ne("type", 1) |
| | | .isNotNull("orderType")); |
| | | }else{ |
| | | incomes = tIncomeService.selectList(new EntityWrapper<Income>() |
| | | .eq("userType", 1) |
| | | .eq("objectId",1) |
| | | .eq(null != company, "objectId",company) |
| | | .ne("type", 1) |
| | | .isNotNull("orderType") |
| | | .between("insertTime", start, end)); |
| | |
| | | if (time == 5 && !StringUtils.hasLength(insertTime)){ |
| | | incomes = tIncomeService.selectList(new EntityWrapper<Income>() |
| | | .eq("userType", 1) |
| | | .eq("objectId",1) |
| | | .eq(null != company, "objectId",company) |
| | | .ne("type", 1) |
| | | .isNotNull("orderType")); |
| | | }else{ |
| | | incomes = tIncomeService.selectList(new EntityWrapper<Income>() |
| | | .eq("userType", 1) |
| | | .eq("objectId",1) |
| | | .eq(null != company, "objectId",company) |
| | | .ne("type", 1) |
| | | .isNotNull("orderType") |
| | | .between("insertTime", start, end)); |
| | |
| | | // 司机奖励 |
| | | between4 = new EntityWrapper<DriverActivityHistory>() |
| | | .eq("carryOut", 2) |
| | | .in(!collect.isEmpty(), "activityId", collect) |
| | | .in(!collect.isEmpty(), "driverActivityId", collect) |
| | | ; |
| | | } else { |
| | | // 专车wrapper |
| | |
| | | // 司机奖励 |
| | | between4 = new EntityWrapper<DriverActivityHistory>() |
| | | .eq("carryOut", 2) |
| | | .in(!collect.isEmpty(), "activityId", collect) |
| | | .in(!collect.isEmpty(), "driverActivityId", collect) |
| | | .between("insertTime", start, end); |
| | | } |
| | | |
| | |
| | | // 司机奖励 |
| | | between4 = new EntityWrapper<DriverActivityHistory>() |
| | | .eq("carryOut", 2) |
| | | .in(!collect.isEmpty(), "activityId", collect) |
| | | .in(!collect.isEmpty(), "driverActivityId", collect) |
| | | ; |
| | | } else { |
| | | // 专车wrapper |
| | |
| | | // 司机奖励 |
| | | between4 = new EntityWrapper<DriverActivityHistory>() |
| | | .eq("carryOut", 2) |
| | | .in(!collect.isEmpty(), "activityId", collect) |
| | | .in(!collect.isEmpty(), "driverActivityId", collect) |
| | | .between("insertTime", start, end); |
| | | } |
| | | |