未验证 提交 cc9e5d5d 编写于 作者: S Squidyu 提交者: GitHub

Add:Name verification remove the first and last spaces. (#5574)

Co-authored-by: 游语's avatarSquid <2824638304@qq.com>
上级 a5a0c7c5
......@@ -447,11 +447,11 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
if (resultEnum != Status.SUCCESS) {
return checkResult;
}
ProcessDefinition processDefinition = processDefinitionMapper.verifyByDefineName(project.getCode(), name);
ProcessDefinition processDefinition = processDefinitionMapper.verifyByDefineName(project.getCode(), name.trim());
if (processDefinition == null) {
putMsg(result, Status.SUCCESS);
} else {
putMsg(result, Status.PROCESS_DEFINITION_NAME_EXIST, name);
putMsg(result, Status.PROCESS_DEFINITION_NAME_EXIST, name.trim());
}
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册