|
|
@@ -156,8 +156,8 @@ public class ApplicationManage { |
|
|
|
Map<Long, List<ProjectApplication>> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectId)); |
|
|
|
List<ProjectDetailVO> res = page.getRecords().stream().map(p -> { |
|
|
|
ProjectDetailVO vo = BeanUtil.copyProperties(p,ProjectDetailVO.class); |
|
|
|
if(appMap.containsKey(p.getId())){ |
|
|
|
List<ProjectApplication> projectApplications = appMap.get(p.getId()); |
|
|
|
if(appMap.containsKey(p.getProjectCode())){ |
|
|
|
List<ProjectApplication> projectApplications = appMap.get(p.getProjectCode()); |
|
|
|
vo.setProjectApplications(convert(projectApplications)); |
|
|
|
} |
|
|
|
return vo; |
|
|
|