Compare commits

...

3 Commits

Author SHA1 Message Date
wangliwen 82f944e034 Merge branch 'master' into docker_package 2023-01-03 17:32:06 +08:00
wangliwen fd98a12cdc Merge branch 'dev' 2023-01-03 17:31:59 +08:00
wangliwen a9fd6f2455 ... 2023-01-03 17:31:52 +08:00
1 changed files with 10 additions and 2 deletions

View File

@ -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<SysDateSnapshotDao, SysDateSnapshotEntity, SysDateSnapshotDTO> 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<SysDateSnapshotD
put("count", countApply);
put("type", "资源申请量");
}});
if (resultMap.containsKey("total")) {
addAll((Collection<? extends Map<String, Object>>) resultMap.get("total"));
try {
if (resultMap.containsKey("total")) {
addAll((Collection<? extends Map<String, Object>>) resultMap.get("total"));
}
} catch (Exception exception) {
logger.error("获取资源数量失败", exception);
}
}};