Browse Source

debug 查询最新项目

tags/24080901
PoffyZhang 1 year ago
parent
commit
62ad251626
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

@@ -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…
Cancel
Save