| | |
| | | sortedList.add(actionList.get(i)); |
| | | } |
| | | } |
| | | Action action = actionList.get(lastActionIndex); |
| | | action.setActionSts(ActionStsType.NEXT.val()); |
| | | actionService.updateById(action); |
| | | actionList = sortedList; |
| | | } |
| | | |
| | | Action shang = actionService.getOne(new LambdaQueryWrapper<Action>().eq(Action::getAgvId, agvId).eq(Action::getActionSts, ActionStsType.PREPARE.val()).eq(Action::getActionType, ActionTypeType.ReadyReleaseToAgvSite.val()).orderByDesc(Action::getId)); |
| | | Action shang = actionService.getOne(new LambdaQueryWrapper<Action>().eq(Action::getAgvId, agvId).eq(Action::getActionSts, ActionStsType.NEXT.val()).eq(Action::getActionType, ActionTypeType.ReadyReleaseToAgvSite.val()).ne(Action::getGroupId,actionGroupId)); |
| | | if (shang != null) { |
| | | int turnCornerIdx = actionSorter.findFirstActionIndex(actionList, ActionTypeType.TurnCorner.val()); |
| | | if (turnCornerIdx == -1) { |
| | |
| | | |
| | | // block vehicle info |
| | | Long blockAgvId = agvService.getAgvId(blockAgvNo); |
| | | if (agvDetailService.selectMajorByAgvId(blockAgvId).getRecentCode()==null){ |
| | | log.info(blockAgvNo + "小车不在定位"); |
| | | return null; |
| | | } |
| | | String blockAgvCode = codeService.getCacheById(agvDetailService.selectMajorByAgvId(blockAgvId).getRecentCode()).getData(); |
| | | |
| | | // create new jam if already notify the avoid vehicle |
| | |
| | | ISSUED, |
| | | FINISH, |
| | | EXPIRED, |
| | | NEXT, |
| | | ; |
| | | |
| | | ActionStsType() { |