From 35b53fa9013c85983bc534156ea10b671cbf2210 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 13 Oct 2022 10:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=88=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/renren/common/controller/CensusController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java index 7fc0174d..6e5b8b3e 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java @@ -22,6 +22,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; +import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.web.bind.annotation.*; import java.util.*; @@ -54,6 +55,9 @@ public class CensusController { @Autowired private ResourceDao resourceDao; + @Autowired + private JdbcTemplate jdbcTemplate; + @Value("${census.type}") private String[] censusTypes; // 需要进行统计的资源类型 @@ -108,7 +112,7 @@ public class CensusController { }, executor).thenAccept(sum -> result.add(new HashMap() { { put("amount", sum); - put("type", "资源汇聚总量"); + put("type", "资源上架总量"); } })); CompletableFuture userAmount = CompletableFuture.supplyAsync(() -> { // 获取平台用户总数 @@ -134,7 +138,7 @@ public class CensusController { }, executor).thenAccept(sum -> result.add(new HashMap() { { put("amount", sum); - put("type", "资源汇聚部门量"); + put("type", "已上架部门数"); } }));