From 9e7897332b1fa0495b9677f8a940a7b237f7990f Mon Sep 17 00:00:00 2001 From: zk Date: Mon, 13 Jul 2026 12:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=83=A8=E5=88=86=E5=85=AC?= =?UTF-8?q?=E5=8F=B8=E4=B8=8D=E5=AD=98=E5=9C=A8=E8=A1=8C=E4=B8=9A=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/main/java/org/jiayunet/service/IndustryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/src/main/java/org/jiayunet/service/IndustryService.java b/manager/src/main/java/org/jiayunet/service/IndustryService.java index 45f3bae..5b44f88 100644 --- a/manager/src/main/java/org/jiayunet/service/IndustryService.java +++ b/manager/src/main/java/org/jiayunet/service/IndustryService.java @@ -111,7 +111,7 @@ public class IndustryService { private Set getActiveIndustryIds(List allIndustries) { // 1. 查询有公司关联的末级行业ID List companies = companyMapper.selectList(new LambdaQueryWrapper().select(Company::getIndustryId).eq(Company::getStatus, 1).groupBy(Company::getIndustryId)); - Set leafActiveIds = companies.stream().map(Company::getIndustryId).filter(Objects::nonNull).collect(Collectors.toSet()); + Set leafActiveIds = companies.stream().filter(Objects::nonNull).map(Company::getIndustryId).filter(Objects::nonNull).collect(Collectors.toSet()); // 2. 查全量行业,构建id->parentId映射 if (allIndustries == null) {