fix(sj_1.0.0): 修复复制工作流id重复问题
This commit is contained in:
parent
a4ad3d3387
commit
6e2541ebba
@ -130,6 +130,8 @@ public class WorkflowServiceImpl implements WorkflowService {
|
|||||||
HashUtil.bkdrHash(workflowRequestVO.getGroupName() + workflowRequestVO.getWorkflowName())
|
HashUtil.bkdrHash(workflowRequestVO.getGroupName() + workflowRequestVO.getWorkflowName())
|
||||||
% systemProperties.getBucketTotal());
|
% systemProperties.getBucketTotal());
|
||||||
workflow.setNamespaceId(UserSessionUtils.currentUserSession().getNamespaceId());
|
workflow.setNamespaceId(UserSessionUtils.currentUserSession().getNamespaceId());
|
||||||
|
|
||||||
|
workflow.setId(null);
|
||||||
Assert.isTrue(1 == workflowMapper.insert(workflow), () -> new SnailJobServerException("新增工作流失败"));
|
Assert.isTrue(1 == workflowMapper.insert(workflow), () -> new SnailJobServerException("新增工作流失败"));
|
||||||
|
|
||||||
// 获取DAG节点配置
|
// 获取DAG节点配置
|
||||||
|
Loading…
Reference in New Issue
Block a user