bug修复
This commit is contained in:
parent
52edb4edcd
commit
90dbc0d9f4
|
@ -326,7 +326,9 @@ public class CensusControllerV2 {
|
|||
allAmount = CompletableFuture.supplyAsync(() -> { // 获取平台总基础设施数目
|
||||
Map map = (Map) resourceService.selectTotal();
|
||||
List<Map<String, Object>> dbAmount = (List<Map<String, Object>>) map.get("total");
|
||||
return dbAmount.stream().mapToLong(index -> Long.parseLong(index.get("count").toString())).sum();
|
||||
|
||||
return dbAmount.stream().filter(index -> "基础设施".equals(index.get("type").toString()))
|
||||
.mapToLong(index -> Long.parseLong(index.get("count").toString())).sum();
|
||||
}).thenAccept(sum -> {
|
||||
result.add(new HashMap<String, Object>() {
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue