fix(sj_1.0.0): 修复复制工作流id重复问题

This commit is contained in:
opensnail 2024-06-08 18:23:06 +08:00
parent a4ad3d3387
commit 6e2541ebba

View File

@ -130,6 +130,8 @@ public class WorkflowServiceImpl implements WorkflowService {
HashUtil.bkdrHash(workflowRequestVO.getGroupName() + workflowRequestVO.getWorkflowName())
% systemProperties.getBucketTotal());
workflow.setNamespaceId(UserSessionUtils.currentUserSession().getNamespaceId());
workflow.setId(null);
Assert.isTrue(1 == workflowMapper.insert(workflow), () -> new SnailJobServerException("新增工作流失败"));
// 获取DAG节点配置