Sfoglia il codice sorgente

debug 查询最新项目

tags/24080901
PoffyZhang 1 anno fa
parent
commit
62ad251626
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 Vedi File

@@ -148,10 +148,10 @@ public class ApplicationManage {
return PageVo.empty();
}

List<Long> projectIds = page.getRecords().stream().map(Project::getId).collect(Collectors.toList());
List<String> projectCodes = page.getRecords().stream().map(Project::getProjectCode).collect(Collectors.toList());
//要去查询应用
List<ProjectApplication> apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class)
.in(ProjectApplication::getProjectId, projectIds)
.in(ProjectApplication::getProjectCode, projectCodes)
.isNull(ProjectApplication::getAppCode));
Map<Long, List<ProjectApplication>> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectId));
List<ProjectDetailVO> res = page.getRecords().stream().map(p -> {


Loading…
Annulla
Salva