| | |
| | | .set(Task::getUpdateTime, new Date())); |
| | | |
| | | if (statusUpdated) { |
| | | log.info("新创建的入库任务状态已更新为2(RCS任务已下发) - 任务编码:{}", task.getTaskCode()); |
| | | task = taskService.getById(task.getId()); |
| | | log.info("新创建的入库任务状态已更新为2(RCS任务已下发) - 任务编码:{},当前状态:{}", task.getTaskCode(), task != null ? task.getTaskStatus() : null); |
| | | } else { |
| | | task = taskService.getById(task.getId()); |
| | | log.warn("新创建的入库任务状态更新为2失败,可能状态已变更 - 任务编码:{},当前状态:{}", |
| | | task.getTaskCode(), task.getTaskStatus()); |
| | | task.getTaskCode(), task != null ? task.getTaskStatus() : null); |
| | | } |
| | | } else if (taskStatus != null && taskStatus.equals(TaskStsType.WCS_EXECUTE_IN.id)) { |
| | | log.info("入库任务状态已经是2(RCS任务已下发),无需更新 - 任务编码:{}", task.getTaskCode()); |