|
@@ -341,11 +341,6 @@ public class ProjectLibManage { |
|
|
//保存项目应用 |
|
|
//保存项目应用 |
|
|
Boolean isApp = Objects.nonNull(projectDto.getIncludeApplication()) && CommonEnum.YES.getCode().equals(projectDto.getIncludeApplication()) |
|
|
Boolean isApp = Objects.nonNull(projectDto.getIncludeApplication()) && CommonEnum.YES.getCode().equals(projectDto.getIncludeApplication()) |
|
|
? Boolean.TRUE : Boolean.FALSE; |
|
|
? Boolean.TRUE : Boolean.FALSE; |
|
|
//采取批量删除 批量添加的方式 |
|
|
|
|
|
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
|
|
.eq(ProjectApplication::getProjectId,project.getId())); |
|
|
|
|
|
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
|
|
.eq(ProjectApplication::getProjectCode,project.getProjectCode())); |
|
|
|
|
|
if (isApp && CollUtil.isNotEmpty(projectDto.getApplicationList())) { |
|
|
if (isApp && CollUtil.isNotEmpty(projectDto.getApplicationList())) { |
|
|
Project finalProject = project; |
|
|
Project finalProject = project; |
|
|
List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> { |
|
|
List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> { |
|
|