From ad6deaf71f28f76118f6e189e6abaf7b4f86d7b1 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 3 Jan 2023 17:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SysDateSnapshotServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/date_snapshot/service/impl/SysDateSnapshotServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/date_snapshot/service/impl/SysDateSnapshotServiceImpl.java index c4917688..609fb8f9 100644 --- a/renren-admin/src/main/java/io/renren/modules/date_snapshot/service/impl/SysDateSnapshotServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/date_snapshot/service/impl/SysDateSnapshotServiceImpl.java @@ -42,12 +42,15 @@ public class SysDateSnapshotServiceImpl extends CrudServiceImpl resultMap = (HashMap) resourceService.selectTotal(); List> snapshot = new ArrayList>() {{ add(new LinkedHashMap() {{ put("count", countApply); put("type", "资源申请量"); }}); - addAll((Collection>) resourceService.selectTotal()); // 资源汇聚量 + if (resultMap.containsKey("total")) { + addAll((Collection>) resultMap.get("total")); + } }}; sysDateSnapshotDTO.setCreateDate(new Date());