diff --git a/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/executor/ActionExecutor.java b/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/executor/ActionExecutor.java index 09741a0a..71ef3e4a 100644 --- a/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/executor/ActionExecutor.java +++ b/Partner-Main/src/main/java/work/slhaf/partner/module/modules/action/dispatcher/executor/ActionExecutor.java @@ -117,8 +117,9 @@ public class ActionExecutor extends AgentRunningSubModule new ArrayList<>()) + .computeIfAbsent(executingStage, integer -> new ArrayList<>()) .add(historyAction); } else { val repairerInput = assemblyHelper.buildRepairerInput(historyActionResults, metaAction, userId); @@ -193,25 +194,6 @@ public class ActionExecutor extends AgentRunningSubModule getHistoryActionResults(ActionData actionData) { - int executingStage = actionData.getExecutingStage(); - if (executingStage <= 0) { - return new ArrayList<>(); - } - Map> actionChain = actionData.getActionChain(); - // executingStage 是当前正在执行的阶段,所以只需要获取到前一阶段的结果 - return actionChain.get(executingStage - 1).stream() - .map(metaAction -> { - HistoryAction historyAction = new HistoryAction(); - historyAction.setActionKey(metaAction.getKey()); - historyAction - .setDescription( - actionCapability.loadMetaActionInfo(metaAction.getKey()).getDescription()); - historyAction.setResult(metaAction.getResult().getData()); - return historyAction; - }).toList(); - } - private CorrectorInput buildCorrectorInput() { return null; }