|
|
@@ -82,7 +82,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
BeanUtils.copyProperties(workOrder, logOrder);
|
|
|
logOrder.setCreater(userId);
|
|
|
logOrder.setCreaterName(userName);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_ORDER_NEW_START, logOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_ORDER_NEW_START, logOrder, userId + "", userName);
|
|
|
}
|
|
|
//1.车辆进入出车前检车状态
|
|
|
truck.setTmsStatus(TmsTruckStatus.PRE_CHECK);
|
|
|
@@ -113,7 +113,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
//插入日志
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_ORDER_START, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_ORDER_START, workOrder, userId + "", userName);
|
|
|
|
|
|
} else if (workOrder.getType() == 2) {
|
|
|
if (!zhongFlag) {
|
|
|
@@ -131,7 +131,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
//插入日志
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_ORDER_START, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_ORDER_START, workOrder, userId + "", userName);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -152,7 +152,8 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
//4 记录日志
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.FINISH_PRE_CHECK, workOrder, truckCheckInfo.getCheckUrl());
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.FINISH_PRE_CHECK, workOrder, userId + "", userName,
|
|
|
+ truckCheckInfo.getCheckUrl());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.error("startOrder:{}", e);
|
|
|
@@ -182,9 +183,9 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
if (workOrder.getType() == 1) {
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_POINT_ARRIVED, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_POINT_ARRIVED, workOrder, userId + "", userName);
|
|
|
} else {
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_POINT_ARRIVED, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_POINT_ARRIVED, workOrder, userId + "", userName);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
@@ -230,9 +231,9 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
if (workOrder.getType() == 1) {
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_START, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_START, workOrder, userId + "", userName);
|
|
|
} else {
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_START, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_START, workOrder, userId + "", userName);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
@@ -287,11 +288,11 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
if (workOrder.getType() == 1) {
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_END, workOrder);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_COMPLETE, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_END, workOrder, userId + "", userName);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.LOAD_COMPLETE, workOrder, userId + "", userName);
|
|
|
} else {
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_END, workOrder);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_COMPLETE, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_END, workOrder, userId + "", userName);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.UNLOAD_COMPLETE, workOrder, userId + "", userName);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -313,7 +314,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
//2 记录日志
|
|
|
workOrder.setCreater(userId);
|
|
|
workOrder.setCreaterName(userName);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.RETURN_POINT_ARRIVED, workOrder);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.RETURN_POINT_ARRIVED, workOrder, userId + "", userName);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.error("startOrder:{}", e.getStackTrace());
|
|
|
@@ -366,7 +367,7 @@ public class WorkerServiceImpl implements WorkerService {
|
|
|
//4 记录日志
|
|
|
workOrderParam.setCreater(userId);
|
|
|
workOrderParam.setCreaterName(userName);
|
|
|
- workLogService.logWorkCycleInfo(WorkLogTypeEnum.CLOSED, workOrderParam);
|
|
|
+ workLogService.logWorkCycleInfo(WorkLogTypeEnum.CLOSED, workOrderParam, userId + "", userName);
|
|
|
} catch (Exception e) {
|
|
|
log.error("startOrder:{}", e);
|
|
|
return false;
|