From e8e6d5396af26d83f85bb7d703416108d906b23b Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 22 Jun 2022 19:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/renren/common/controller/CensusController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java index 2e45a1c6..4d162606 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java @@ -205,7 +205,11 @@ public class CensusController { CompletableFuture.supplyAsync(() -> { // 获取部门提供能力 List db = resourceService.selectDeptProvide(deptId); Set type = - db.stream().flatMap(index_ -> Arrays.stream(index_.split(";"))).filter(index_ -> StringUtils.isNotEmpty(index_)).filter(index_ -> !"其他".equals(index_)).collect(Collectors.toSet()); + db.stream(). + flatMap(index_ -> Arrays.stream(index_.split(";"))) + .filter(index_ -> StringUtils.isNotEmpty(index_)) + .filter(index_ -> !"其他".equals(index_)) + .collect(Collectors.toSet()); return type; }).thenAccept(type -> { SysDeptDTO deptDTO = sysDeptService.get(deptId);