|
|
@@ -151,8 +151,7 @@ public class ApplicationManage { |
|
|
|
List<String> projectCodes = page.getRecords().stream().map(Project::getProjectCode).collect(Collectors.toList()); |
|
|
|
//要去查询应用 |
|
|
|
List<ProjectApplication> apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
.in(ProjectApplication::getProjectCode, projectCodes) |
|
|
|
.isNull(ProjectApplication::getAppCode)); |
|
|
|
.in(ProjectApplication::getProjectCode, projectCodes)); |
|
|
|
Map<String, List<ProjectApplication>> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectCode)); |
|
|
|
List<ProjectDetailVO> res = page.getRecords().stream().map(p -> { |
|
|
|
ProjectDetailVO vo = BeanUtil.copyProperties(p,ProjectDetailVO.class); |
|
|
|