diff --git a/ruoyi-modules-api/ruoyi-workflow-api/src/main/java/org/ruoyi/workflow/workflow/WorkflowUtil.java b/ruoyi-modules-api/ruoyi-workflow-api/src/main/java/org/ruoyi/workflow/workflow/WorkflowUtil.java index b4d96b57..adbd581b 100644 --- a/ruoyi-modules-api/ruoyi-workflow-api/src/main/java/org/ruoyi/workflow/workflow/WorkflowUtil.java +++ b/ruoyi-modules-api/ruoyi-workflow-api/src/main/java/org/ruoyi/workflow/workflow/WorkflowUtil.java @@ -123,14 +123,14 @@ public class WorkflowUtil { Set nameSet = CollStreamUtil.toSet(refInputs, WfNodeParamRef::getName); userMessage.stream().filter(item -> nameSet.contains(item.getName())) - .map(item -> getMessage("role", item.getContent().getValue())).forEach(messages::add); + .map(item -> getMessage("user", item.getContent().getValue())).forEach(messages::add); if (CollUtil.isNotEmpty(messages)) { return; } userMessage.stream().filter(item -> "input".equals(item.getName())) - .map(item -> getMessage("role", item.getContent().getValue())).forEach(messages::add); + .map(item -> getMessage("user", item.getContent().getValue())).forEach(messages::add); } /** diff --git a/script/sql/update/2025-09-30-流程编排.sql b/script/sql/update/2025-09-30-流程编排.sql index 747d73e3..8532a817 100644 --- a/script/sql/update/2025-09-30-流程编排.sql +++ b/script/sql/update/2025-09-30-流程编排.sql @@ -3,7 +3,7 @@ CREATE TABLE t_workflow id BIGINT AUTO_INCREMENT PRIMARY KEY, uuid VARCHAR(32) NOT NULL DEFAULT '', title VARCHAR(100) NOT NULL DEFAULT '', - remark TEXT NOT NULL DEFAULT '', + remark TEXT NOT NULL, user_id BIGINT NOT NULL DEFAULT 0, is_public TINYINT(1) NOT NULL DEFAULT 0, is_enable TINYINT(1) NOT NULL DEFAULT 1,