| | |
| | | if (!agvService.judgeEnable(agv.getId())) { |
| | | return false; |
| | | } |
| | | if (!Cools.isEmpty(taskService.selectInSts(agv.getId(), TaskStsType.ASSIGN, TaskStsType.PROGRESS))) { |
| | | throw new CoolException("AGV[" + agv.getUuid() + "] failed to assign,because already has the task in running..."); |
| | | } |
| | | |
| | | Date now = new Date(); |
| | | Code endCode = null; |
| | |
| | | for (Action action : actionList) { |
| | | action.setActionSts(ActionStsType.ISSUED.val()); |
| | | action.setStartTime(now); |
| | | action.setIoTime(now); |
| | | action.setUpdateTime(now); |
| | | if (!actionService.updateById(action)) { |
| | | throw new BusinessException(action.getPriority() + " - " + action.getName() + "动作更新失败"); |