|
|
@@ -478,13 +478,14 @@ public class ProjectLibManage { |
|
|
|
.eq(Project::getProjectCode,project.getProjectCode())); |
|
|
|
|
|
|
|
//采取批量删除 批量添加的方式 批量删除建设方案申报后的应用信息 |
|
|
|
List<Long> projectIdList = projectService.list(Wrappers.lambdaQuery(Project.class) |
|
|
|
List<String> projectCodeList = projectService.list(Wrappers.lambdaQuery(Project.class) |
|
|
|
.eq(Project::getProjectCode, project.getProjectCode()) |
|
|
|
.eq(Project::getIsConstruct, Boolean.TRUE)).stream() |
|
|
|
.map(Project::getId).collect(Collectors.toList()); |
|
|
|
.eq(Project::getIsConstruct, isConstruct)).stream() |
|
|
|
.map(Project::getProjectCode).collect(Collectors.toList()); |
|
|
|
projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
.eq(ProjectApplication::getProjectCode,project.getProjectCode()) |
|
|
|
.in(CollUtil.isNotEmpty(projectIdList),ProjectApplication::getProjectId,projectIdList)); |
|
|
|
.in(CollUtil.isNotEmpty(projectCodeList),ProjectApplication::getProjectCode,projectCodeList) |
|
|
|
.eq(ProjectApplication::getIsConstruct,isConstruct)); |
|
|
|
|
|
|
|
//app |
|
|
|
List<ProjectApplicationDTO> applicationList = projecDto.getApplicationList(); |
|
|
|