This commit is contained in:
wangliwen 2022-06-22 20:04:36 +08:00
parent e8e6d5396a
commit ecdd006c4e
1 changed files with 2 additions and 1 deletions

View File

@ -205,7 +205,8 @@ public class CensusController {
CompletableFuture.supplyAsync(() -> { // 获取部门提供能力 CompletableFuture.supplyAsync(() -> { // 获取部门提供能力
List<String> db = resourceService.selectDeptProvide(deptId); List<String> db = resourceService.selectDeptProvide(deptId);
Set<String> type = Set<String> type =
db.stream(). db.stream()
.filter(index_ -> StringUtils.isNotEmpty(index_)).
flatMap(index_ -> Arrays.stream(index_.split(";"))) flatMap(index_ -> Arrays.stream(index_.split(";")))
.filter(index_ -> StringUtils.isNotEmpty(index_)) .filter(index_ -> StringUtils.isNotEmpty(index_))
.filter(index_ -> !"其他".equals(index_)) .filter(index_ -> !"其他".equals(index_))