作者 王勇

所有代码,进行格式化

@@ -210,11 +210,13 @@ public class DispatchController { @@ -210,11 +210,13 @@ public class DispatchController {
210 * 设置车辆状态,为空闲状态("1") 210 * 设置车辆状态,为空闲状态("1")
211 * 设置车辆,开始空闲时间 211 * 设置车辆,开始空闲时间
212 * 将调度记录表的状态修改为撤销(取消)状态("3") 212 * 将调度记录表的状态修改为撤销(取消)状态("3")
  213 + * 为调度记录表设置完成时间
213 */ 214 */
214 vehicleInfo.setVehicleStatus("1"); 215 vehicleInfo.setVehicleStatus("1");
215 vehicleInfo.setFreetime(new Date()); 216 vehicleInfo.setFreetime(new Date());
216 vehicleInfoService.updateByPrimaryKeySelective(vehicleInfo); 217 vehicleInfoService.updateByPrimaryKeySelective(vehicleInfo);
217 req.setStatus("3"); 218 req.setStatus("3");
  219 + req.setEndTime(new Date());
218 dispatchNoteService.updateByPrimaryKeySelective(req); 220 dispatchNoteService.updateByPrimaryKeySelective(req);
219 result.setMsg("该调度车辆,已经取消"); 221 result.setMsg("该调度车辆,已经取消");
220 } else { 222 } else {
@@ -62,9 +62,7 @@ public class VehicleInfoController { @@ -62,9 +62,7 @@ public class VehicleInfoController {
62 } 62 }
63 return result; 63 return result;
64 } 64 }
65 - /**  
66 - * 单个查询  
67 - */ 65 +
68 /** 66 /**
69 * 增加 67 * 增加
70 */ 68 */