From e98febf4c6eaf51ed37b066135d21d79416afc65 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 13 Oct 2022 17:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/renren/common/controller/CensusController.java | 4 ++-- 1 file changed, 2 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 2c8c5fbe..fbbd954e 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,12 +171,12 @@ public class CensusController { }; dbAmount.add(nullMap); }); - new HashMap() { + dbAmount.add(new HashMap() { { put("amount", jdbcTemplate.queryForObject("SELECT COUNT(id) FROM t_meetingroom_book;", Long.class)); put("type", "会客厅"); } - }; + }); return new Result>>().ok(dbAmount); }