diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java index fe16e32..93fd98a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java @@ -954,7 +954,12 @@ public class TodoCenterManage { VUtils.isTrue(Objects.isNull(projectInfo)).throwMessage("调整失败 此项目不存在!"); //项目名称去重 - defaultDeclaredProjectManage.checkDuplication(projectDto); + //项目名称去重 + if(StringUtils.isNotBlank(projectDto.getProjectName()) && + !projectDto.getProjectName().equals(projectInfo.getProjectName())){ + projectDto.setProjectCode(projectInfo.getProjectCode()); + defaultDeclaredProjectManage.checkDuplication(projectDto); + } defaultDeclaredProjectManage.checkAmount(projectDto); //修改项目内容