From cd6c670a18989395cb576464bdd54097d55600fb Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 13 Oct 2022 17:37:25 +0800 Subject: [PATCH] =?UTF-8?q?apply=5Famount=20=E5=A2=9E=E5=8A=A0=E4=BC=9A?= =?UTF-8?q?=E5=AE=A2=E5=8E=85=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/renren/common/controller/CensusController.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 6e5b8b3e..2c8c5fbe 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 @@ -171,6 +171,12 @@ public class CensusController { }; dbAmount.add(nullMap); }); + new HashMap() { + { + put("amount", jdbcTemplate.queryForObject("SELECT COUNT(id) FROM t_meetingroom_book;", Long.class)); + put("type", "会客厅"); + } + }; return new Result>>().ok(dbAmount); }