From 8bb4a04cfb5b23f86fa022f5e39d8e9c8069f83c Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 13 Jul 2023 09:50:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=92=8C=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=20=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/projectlib/manage/ApplicationManage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 7689687..fdd06e3 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 @@ -151,7 +151,8 @@ public class ApplicationManage { List projectIds = page.getRecords().stream().map(Project::getId).collect(Collectors.toList()); //要去查询应用 List apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) - .in(ProjectApplication::getProjectId, projectIds)); + .in(ProjectApplication::getProjectId, projectIds) + .isNull(ProjectApplication::getAppCode)); Map> appMap = apps.stream().collect(Collectors.groupingBy(ProjectApplication::getProjectId)); List res = page.getRecords().stream().map(p -> { ProjectDetailVO vo = BeanUtil.copyProperties(p,ProjectDetailVO.class);