From 62ad251626922ac212e62abc409372d7d7b1b916 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 13 Jul 2023 13:55:43 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=E6=9F=A5=E8=AF=A2=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java index fdd06e3..010e803 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java @@ -148,10 +148,10 @@ public class ApplicationManage { return PageVo.empty(); } - List projectIds = page.getRecords().stream().map(Project::getId).collect(Collectors.toList()); + List projectCodes = page.getRecords().stream().map(Project::getProjectCode).collect(Collectors.toList()); //要去查询应用 List apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) - .in(ProjectApplication::getProjectId, projectIds) + .in(ProjectApplication::getProjectCode, projectCodes) .isNull(ProjectApplication::getAppCode)); Map> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectId)); List res = page.getRecords().stream().map(p -> {