saveFlow 添加同名校验

release_1.0.0
xueqingkun 8 months ago
parent 9b8343c270
commit 026ced7ca7

@ -43,6 +43,8 @@ public class FlowManageServiceImpl implements FlowManageService {
assertBase(flowInfoReqVo);
Long count = systemFlowService.lambdaQuery().eq(SystemFlow::getFlowName, flowInfoReqVo.getFlowName()).count();
Assert.isTrue(count == 0, "流程名称已存在");
// 一个子库最多对应一种流程类型
List<String> baseIdList = flowInfoReqVo.getBaseIdList();
List<Integer> flowTypeList = flowInfoReqVo.getFlowTypeList();

Loading…
Cancel
Save