#
vincentlu
昨天 d58a5160d46bd0f83fdd73e9e49061b33e1d241b
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/impl/MissionServiceImpl.java
@@ -151,8 +151,7 @@
            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)
@@ -219,9 +218,10 @@
        }
        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;
        }