。。。

This commit is contained in:
wangliwen 2022-10-13 17:49:06 +08:00
parent cd6c670a18
commit e98febf4c6
1 changed files with 2 additions and 2 deletions

View File

@ -171,12 +171,12 @@ public class CensusController {
}; };
dbAmount.add(nullMap); dbAmount.add(nullMap);
}); });
new HashMap<String, Object>() { dbAmount.add(new HashMap<String, Object>() {
{ {
put("amount", jdbcTemplate.queryForObject("SELECT COUNT(id) FROM t_meetingroom_book;", Long.class)); put("amount", jdbcTemplate.queryForObject("SELECT COUNT(id) FROM t_meetingroom_book;", Long.class));
put("type", "会客厅"); put("type", "会客厅");
} }
}; });
return new Result<List<Map<String, Object>>>().ok(dbAmount); return new Result<List<Map<String, Object>>>().ok(dbAmount);
} }