|
@@ -190,7 +190,10 @@ public class WorkFlowServiceImpl implements WorkFlowService {
|
|
|
String tenantId = UserUtil.getCurrentUser().getTenantId();
|
|
|
int uniqueCount = processDefinitionMapper.checkProcessUnique(null, tenantId,
|
|
|
processDefinition.getCompanyOrgId(),processDefinition.getTaskType());
|
|
|
- if (uniqueCount > 0) {
|
|
|
+ ProcessDefinition processDefinition1 = processDefinitionMapper.selectById(processDefinition.getId());
|
|
|
+ boolean flag=processDefinition1.getCompanyOrgId().equals(processDefinition.getCompanyOrgId())&&
|
|
|
+ processDefinition1.getTaskType().equals(processDefinition.getTaskType());
|
|
|
+ if (!flag&&uniqueCount > 0) {
|
|
|
throw new ServiceException(ResultStatus.PROCESS_ALREADY_EXISTS);
|
|
|
}
|
|
|
|