From a9fd6f245548238487f829879522d7d6cccb9b25 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 3 Jan 2023 17:31:52 +0800 Subject: [PATCH] ... --- .../service/impl/SysDateSnapshotServiceImpl.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 609fb8f9..9382deb2 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 @@ -8,6 +8,8 @@ import io.renren.modules.date_snapshot.entity.SysDateSnapshotEntity; import io.renren.modules.date_snapshot.service.SysDateSnapshotService; import io.renren.modules.processForm.service.TAbilityApplicationService; import io.renren.modules.resource.service.ResourceService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -21,6 +23,8 @@ import java.util.*; */ @Service public class SysDateSnapshotServiceImpl extends CrudServiceImpl implements SysDateSnapshotService { + + private static final Logger logger = LoggerFactory.getLogger(SysDateSnapshotServiceImpl.class); @Autowired private TAbilityApplicationService tAbilityApplicationService; @Autowired @@ -48,8 +52,12 @@ public class SysDateSnapshotServiceImpl extends CrudServiceImpl>) resultMap.get("total")); + try { + if (resultMap.containsKey("total")) { + addAll((Collection>) resultMap.get("total")); + } + } catch (Exception exception) { + logger.error("获取资源数量失败", exception); } }};