diff --git a/renren-admin/src/main/java/io/renren/common/controller/CensusControllerV2.java b/renren-admin/src/main/java/io/renren/common/controller/CensusControllerV2.java index 3dc11df1..99670f49 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CensusControllerV2.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CensusControllerV2.java @@ -326,7 +326,9 @@ public class CensusControllerV2 { allAmount = CompletableFuture.supplyAsync(() -> { // 获取平台总基础设施数目 Map map = (Map) resourceService.selectTotal(); List> dbAmount = (List>) 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() { {