。。。

This commit is contained in:
wangliwen 2022-06-22 19:41:10 +08:00
parent de75da4b68
commit e8e6d5396a
1 changed files with 5 additions and 1 deletions

View File

@ -205,7 +205,11 @@ public class CensusController {
CompletableFuture.supplyAsync(() -> { // 获取部门提供能力
List<String> db = resourceService.selectDeptProvide(deptId);
Set<String> 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);