Merge pull request #229 from radish15/main

fix/修复工作流的问题
This commit is contained in:
evo
2025-10-22 13:59:55 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -123,14 +123,14 @@ public class WorkflowUtil {
Set<String> nameSet = CollStreamUtil.toSet(refInputs, WfNodeParamRef::getName); Set<String> nameSet = CollStreamUtil.toSet(refInputs, WfNodeParamRef::getName);
userMessage.stream().filter(item -> nameSet.contains(item.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)) { if (CollUtil.isNotEmpty(messages)) {
return; return;
} }
userMessage.stream().filter(item -> "input".equals(item.getName())) 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);
} }
/** /**

View File

@@ -3,7 +3,7 @@ CREATE TABLE t_workflow
id BIGINT AUTO_INCREMENT PRIMARY KEY, id BIGINT AUTO_INCREMENT PRIMARY KEY,
uuid VARCHAR(32) NOT NULL DEFAULT '', uuid VARCHAR(32) NOT NULL DEFAULT '',
title VARCHAR(100) 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, user_id BIGINT NOT NULL DEFAULT 0,
is_public TINYINT(1) NOT NULL DEFAULT 0, is_public TINYINT(1) NOT NULL DEFAULT 0,
is_enable TINYINT(1) NOT NULL DEFAULT 1, is_enable TINYINT(1) NOT NULL DEFAULT 1,