| | |
| | | // if (taskCnt == 0) { |
| | | // continue; |
| | | // } |
| | | // in TransferStationHandler.hasDelayAtSta todo |
| | | Travel runningTravel = travelService.findRunningTravel(agvId); |
| | | if (null == runningTravel) { |
| | | // in TransferStationHandler.hasDelayAtSta |
| | | Travel currTravelInRollerWaiting = travelService.findRollerWaitingTravel(agvId, currentCode.getId()); |
| | | if (null == currTravelInRollerWaiting) { |
| | | continue; |
| | | } |
| | | segmentService.hasRollerWaitingNow(runningTravel.getId(), agvId, sta.getCode(), TaskPosDto.PosType.ORI_STA) |
| | | Segment currSeg = segmentService.getRollerWaiting(agvId, sta.getCode(), TaskPosDto.PosType.ORI_STA); |
| | | if (null == currSeg) { |
| | | continue; |
| | | } |
| | | // Segment currSeg = segmentService.getRollerWaiting(agvId, sta.getCode(), TaskPosDto.PosType.ORI_STA); |
| | | // if (null == currSeg) { |
| | | // continue; |
| | | // } |
| | | |
| | | // has enough backpack space to load |
| | | Integer backpack = agvService.getBackpack(agvId); |
| | | List<Integer> usedBackpacks = segmentService.selectUsedBackpacks(null, agvId); |
| | | List<Integer> usedBackpacks = segmentService.selectUsedBackpacks(currTravelInRollerWaiting.getId(), agvId); |
| | | if (usedBackpacks.size() >= backpack) { |
| | | continue; |
| | | } |