|
|
@@ -38,8 +38,6 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
@Resource
|
|
|
private WorkOrderService workOrderService;
|
|
|
@Resource
|
|
|
- private TruckCheckInfoService truckCheckInfoService;
|
|
|
- @Resource
|
|
|
private WorkLogService workLogService;
|
|
|
|
|
|
@Override
|
|
|
@@ -100,6 +98,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workCycle.setStatus(1);
|
|
|
workCycle.setStartTrip(workOrderParam.getStartTrip());
|
|
|
workCycleService.save(workCycle);
|
|
|
+ log.info("startOrder workCycle:{}", JSON.toJSONString(workCycle));
|
|
|
|
|
|
workOrder.setCycleId(workCycle.getId());
|
|
|
|
|
|
@@ -212,6 +211,8 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
WorkCycle workCycle = workCycleService.getById(workOrder.getCycleId());
|
|
|
workCycle.setEndTrip(workOrderParam.getEndTrip());
|
|
|
workCycleService.updateById(workCycle);
|
|
|
+ log.info("submitResult workCycle:{}", JSON.toJSONString(workCycle));
|
|
|
+
|
|
|
//1.车辆进入作业中状态
|
|
|
Truck truck = truckService.getById(workOrder.getTruckId());
|
|
|
truck.setTmsStatus(TmsTruckStatus.WORKING);
|
|
|
@@ -279,6 +280,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
}
|
|
|
workCycle.setJingWeight(jingWeight);
|
|
|
workCycleService.updateById(workCycle);
|
|
|
+ log.info("finishOrder workCycle:{}", JSON.toJSONString(workCycle));
|
|
|
|
|
|
//3.并记行车日志
|
|
|
workOrder.setCreater(userId);
|
|
|
@@ -341,7 +343,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workOrderParam.setEndTrip(workOrderParam.getEndTrip());
|
|
|
workOrderParam.setEndTripUrl(workOrderParam.getEndTripUrl());
|
|
|
workOrderService.updateById(workOrderParam);
|
|
|
- log.info("workOrderParam:{}", JSON.toJSONString(workOrderParam));
|
|
|
+ log.info("finishWork workOrderParam:{}", JSON.toJSONString(workOrderParam));
|
|
|
|
|
|
|
|
|
//3.结束当前行程周期(从收车中到出车检查也结束当前行程周期)
|
|
|
@@ -356,7 +358,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workCycle.setEscortId(workOrderParam.getEscortId());
|
|
|
workCycle.setEscortName(workOrderParam.getEscortName());
|
|
|
workCycleService.updateById(workCycle);
|
|
|
- log.info("workCycle:{}", JSON.toJSONString(workCycle));
|
|
|
+ log.info("finishWork workCycle:{}", JSON.toJSONString(workCycle));
|
|
|
|
|
|
|
|
|
//4 记录日志
|
|
|
@@ -386,6 +388,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workCycle.setUpdaterName(userName);
|
|
|
workCycle.setUpdateDate(LocalDateTime.now());
|
|
|
workCycleService.updateById(workCycle);
|
|
|
+ log.info("finishCycle workCycle:{}", JSON.toJSONString(workCycle));
|
|
|
|
|
|
//已收车
|
|
|
truck.setTmsStatus(TmsTruckStatus.DONE);
|