|
|
@ -230,7 +230,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
List<PlmUserRoleData> userRoleList = new ArrayList<>(); |
|
|
List<PlmUserRoleData> userRoleList = new ArrayList<>(); |
|
|
String projectId = ""; |
|
|
String projectId = ""; |
|
|
if (inData.getId() == 0) { |
|
|
if (inData.getId() == 0) { |
|
|
List<PlmProjectInfoData> list = projectDao.getProjectByName(inData.getSite(),inData.getProjectName()); |
|
|
|
|
|
|
|
|
List<PlmProjectInfoData> list = projectDao.getProjectByName(inData.getSite(),inData.getProjectName(), inData.getCustomerId()); |
|
|
if (!list.isEmpty()){ |
|
|
if (!list.isEmpty()){ |
|
|
throw new RuntimeException("项目名称已存在!"); |
|
|
throw new RuntimeException("项目名称已存在!"); |
|
|
} |
|
|
} |
|
|
|