| | |
| | | |
| | | private void patrolOfMove(String agvNo) { |
| | | Long agvId = agvService.getAgvId(agvNo); |
| | | AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(agvId); |
| | | if (0 < travelService.count(new LambdaQueryWrapper<Travel>() |
| | | .eq(Travel::getAgvId, agvId) |
| | | .eq(Travel::getState, TravelStateType.RUNNING.toString()))) { |
| | |
| | | if (!agvService.judgeEnable(agvId)) { |
| | | return; |
| | | } |
| | | AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(agvId); |
| | | Code destinationCode = this.getDestinationCode(agvNo, agvDetail); |
| | | if (null == destinationCode) { |
| | | return; |
| | |
| | | public Code getDestinationCode(String agvNo, AgvDetail agvDetail) { |
| | | Integer maxAgvCountInLane = configService.getVal("maxAgvCountInLane", Integer.class); |
| | | |
| | | Code startCode = codeService.getById(agvDetail.getRecentCode()); |
| | | Code startCode = codeService.getCacheById(agvDetail.getRecentCode()); |
| | | |
| | | List<String> notInCodeList = new ArrayList<>(); |
| | | notInCodeList.add("00000301"); |