作者 王勇

删除调度记录方法,再次审查

@@ -93,10 +93,12 @@ public class DispatchNoteController { @@ -93,10 +93,12 @@ public class DispatchNoteController {
93 ResultJson<DispatchNote> result = new ResultJson<>(); 93 ResultJson<DispatchNote> result = new ResultJson<>();
94 /** 94 /**
95 * 如果调度记录为执行状态("2") 95 * 如果调度记录为执行状态("2")
  96 + * 如果调度记录为待执行状态("4")
96 * 则将对应车辆的状态,修改为空闲状态("1"),并设置开始空闲时间 97 * 则将对应车辆的状态,修改为空闲状态("1"),并设置开始空闲时间
97 */ 98 */
98 - String status = "2";  
99 - if (status.equals(dispatchNote.getStatus())) { 99 + String status2 = "2";
  100 + String status4 = "4";
  101 + if (status2.equals(dispatchNote.getStatus()) || status4.equals(dispatchNote.getStatus())) {
100 String licensePlateNumber = dispatchNote.getLicensePlateNumber(); 102 String licensePlateNumber = dispatchNote.getLicensePlateNumber();
101 //根据车牌号查询到车辆信息 103 //根据车牌号查询到车辆信息
102 VehicleInfo vehicleInfo = vehicleInfoService.selectByLPN(licensePlateNumber); 104 VehicleInfo vehicleInfo = vehicleInfoService.selectByLPN(licensePlateNumber);