Explorar el Código

debug 查询最新项目

tags/24080901
PoffyZhang hace 1 año
padre
commit
8a270d3423
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar