| | |
| | | AgvDetail agvDetail = agvDetailService.selectMajorByAgvId(firstAction.getAgvId()); |
| | | Double lastDirection = MapService.mapToNearest(agvDetail.getAgvAngle()); |
| | | |
| | | List<Action> fullActionList = actionService.list( |
| | | new LambdaQueryWrapper<Action>() |
| | | List<Action> fullActionList = actionService.list(new LambdaQueryWrapper<Action>() |
| | | .eq(Action::getGroupId, actionGroupId) |
| | | .select(Action::getId, Action::getActionType, Action::getPriority) |
| | | .orderByDesc(Action::getPriority) |
| | |
| | | } |
| | | int i = newActionList.size(); |
| | | for (Action action : newActionList) { |
| | | action.setId(null); |
| | | action.setPriority(i); |
| | | if (!actionService.save(action)) { |
| | | throw new BusinessException(action.getName() + " Action Update Fail!"); |
| | | throw new BusinessException(action.getName() + " Action Save Fail!"); |
| | | } |
| | | i -= 1; |
| | | } |