From 8d6b0622a3e6e6478b41768120926b4627433d60 Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Tue, 25 Mar 2025 15:42:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BF=AE=E6=94=B9=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/platform/service/impl/WorkflowServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/WorkflowServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/WorkflowServiceImpl.java index 06e9646b..f3c7387b 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/WorkflowServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/WorkflowServiceImpl.java @@ -126,6 +126,13 @@ public class WorkflowServiceImpl implements WorkflowService { this.workflowDao.update(workflow); assetWorkflowDao.deleteByWorkFlowId(workflow.getId()); saveAssetWorkFlow(workflow); + if (StringUtils.isNotEmpty(workflow.getGlobalParam())) { + List experimentList = experimentService.queryByWorkflowId(workflow.getId()); + for (Experiment experiment : experimentList) { + experiment.setGlobalParam(workflow.getGlobalParam()); + experimentService.update(experiment); + } + } return this.queryById(workflow.getId()); }