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);