Browse Source

debug 查询最新项目

tags/24080901
PoffyZhang 1 year ago
parent
commit
8a270d3423
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java

+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java View File

@@ -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;


Loading…
Cancel
Save