diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java index 9037a04..3db3a2a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java @@ -278,7 +278,7 @@ public class DeclaredProjectManage { projectApplication.setProjectId(project.getId()); return projectApplication; }).collect(Collectors.toList()); - projectApplicationService.saveBatch(applications); + projectApplicationService.saveOrUpdateBatch(applications); } //保存项目和实例的关系 ProjectInst projectInst = new ProjectInst();