From b0467149370a956359f186f0f49239391b15998a Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Sat, 31 Aug 2024 15:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A2=84=E8=AD=A6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8D=95=E4=BD=8D=E7=AD=9B=E9=80=89=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java index 502ac73..14c4e19 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java @@ -818,6 +818,11 @@ public class WorkbenchManage { } List records = projectEarlyWarningService.list(queryWrapper); + if (Objects.nonNull(req.getUnitId())){ + List viewUnitIds = mhUnitCache.getViewChildIdsRecursion(req.getUnitId()); + List queryMhUnitIdList = CollUtils.convert(viewUnitIds, String::valueOf); + records = records.stream().filter(record -> queryMhUnitIdList.contains(record.getBuildOrgCode())).collect(Collectors.toList()); + } if (CollUtil.isNotEmpty(records)) { List projectCodes = CollUtils.fieldList(records, ProjectEarlyWarning::getProjectCode);