From fac6609d6bcfed0b1116a816d3f6fd6afd43be60 Mon Sep 17 00:00:00 2001 From: slhafzjw Date: Wed, 28 Jan 2026 23:00:53 +0800 Subject: [PATCH] refactor(ActionExecutor): remove useless method getHistoryActionResults --- .../dispatcher/executor/ActionExecutor.java | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) 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; }