|
|
@@ -192,7 +192,7 @@ public class WorkerController {
|
|
|
restInfo.setCreateDate(LocalDateTime.now());
|
|
|
Boolean flag = restInfoService.save(restInfo);
|
|
|
workLogService.logWorkCycleInfo(WorkLogTypeEnum.REST_START, null, workCycle.getId() + "", workCycle.getTruckId() + "");
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.REST_START, null, workCycle.getId() + "", workCycle.getTruckId() + "",
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.REST_END, null, workCycle.getId() + "", workCycle.getTruckId() + "",
|
|
|
DateUtils.betweenTime(restInfo.getStartTime(), restInfo.getEndTime()));
|
|
|
return new Result<>(flag);
|
|
|
}
|
|
|
@@ -223,7 +223,7 @@ public class WorkerController {
|
|
|
truckRepairInfo.setCreateDate(LocalDateTime.now());
|
|
|
Boolean flag = truckRepairInfoService.save(truckRepairInfo);
|
|
|
workLogService.logWorkCycleInfo(WorkLogTypeEnum.REPAIR_START, null, workCycle.getId() + "", workCycle.getTruckId() + "");
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.REPAIR_START, null, workCycle.getId() + "", workCycle.getTruckId() + "",
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.REPAIR_END, null, workCycle.getId() + "", workCycle.getTruckId() + "",
|
|
|
DateUtils.betweenTime(truckRepairInfo.getStartTime(), truckRepairInfo.getEndTime()));
|
|
|
return new Result<>(flag);
|
|
|
}
|