|
|
@@ -148,10 +148,10 @@ public class ApplicationManage { |
|
|
|
return PageVo.empty(); |
|
|
|
} |
|
|
|
|
|
|
|
List<Long> projectIds = page.getRecords().stream().map(Project::getId).collect(Collectors.toList()); |
|
|
|
List<String> projectCodes = page.getRecords().stream().map(Project::getProjectCode).collect(Collectors.toList()); |
|
|
|
//要去查询应用 |
|
|
|
List<ProjectApplication> apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
.in(ProjectApplication::getProjectId, projectIds) |
|
|
|
.in(ProjectApplication::getProjectCode, projectCodes) |
|
|
|
.isNull(ProjectApplication::getAppCode)); |
|
|
|
Map<Long, List<ProjectApplication>> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectId)); |
|
|
|
List<ProjectDetailVO> res = page.getRecords().stream().map(p -> { |
|
|
|