浏览代码

debug 查询最新项目

tags/24080901
PoffyZhang 1年前
父节点
当前提交
8a270d3423
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 查看文件

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


正在加载...
取消
保存