| | |
| | | } |
| | | |
| | | private void patrolOfMove(String agvNo) { |
| | | Agv agv = agvService.selectByUuid(agvNo); |
| | | AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(agv.getId()); |
| | | Long agvId = agvService.getAgvId(agvNo); |
| | | AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(agvId); |
| | | if (taskService.count(new LambdaQueryWrapper<Task>() |
| | | .eq(Task::getAgvId, agv.getId()) |
| | | .eq(Task::getAgvId, agvId) |
| | | .in(Task::getTaskSts, TaskStsType.ASSIGN.val(), TaskStsType.PROGRESS.val()) |
| | | ) > 0) { |
| | | return; |
| | | } |
| | | if (!agvService.judgeEnable(agv.getId())) { |
| | | if (!agvService.judgeEnable(agvId)) { |
| | | return; |
| | | } |
| | | Agv agv = agvService.getById(agvId); |
| | | Code destinationCode = this.getDestinationCode(agv, agvDetail); |
| | | if (null == destinationCode) { |
| | | return; |