。。。
This commit is contained in:
parent
de75da4b68
commit
e8e6d5396a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue