This commit is contained in:
wangliwen 2022-05-24 18:43:08 +08:00
parent 86b7ecc0e5
commit 9129b115ff
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ 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);
@ -227,7 +227,7 @@ public class CensusController {
CompletableFuture.supplyAsync(() -> { // 获取资源汇聚总量
List<String> db = tAbilityApplicationService.selectDeptApply(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);