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());