Compare commits

..

3 Commits

Author SHA1 Message Date
wangliwen 088c2a8b5b Merge branch 'master' into docker_package 2023-01-03 17:09:58 +08:00
wangliwen 011753bb7d Merge branch 'dev' 2023-01-03 17:09:52 +08:00
wangliwen ad6deaf71f 调整 2023-01-03 17:09:44 +08:00
1 changed files with 4 additions and 1 deletions

View File

@ -42,12 +42,15 @@ public class SysDateSnapshotServiceImpl extends CrudServiceImpl<SysDateSnapshotD
public void snapshotAction(Integer type) { public void snapshotAction(Integer type) {
SysDateSnapshotDTO sysDateSnapshotDTO = new SysDateSnapshotDTO(); SysDateSnapshotDTO sysDateSnapshotDTO = new SysDateSnapshotDTO();
long countApply = tAbilityApplicationService.countApplyAll(); // 资源申请量 long countApply = tAbilityApplicationService.countApplyAll(); // 资源申请量
HashMap<String, Object> resultMap = (HashMap<String, Object>) resourceService.selectTotal();
List<Map<String, Object>> snapshot = new ArrayList<Map<String, Object>>() {{ List<Map<String, Object>> snapshot = new ArrayList<Map<String, Object>>() {{
add(new LinkedHashMap<String, Object>() {{ add(new LinkedHashMap<String, Object>() {{
put("count", countApply); put("count", countApply);
put("type", "资源申请量"); put("type", "资源申请量");
}}); }});
addAll((Collection<? extends Map<String, Object>>) resourceService.selectTotal()); // 资源汇聚量 if (resultMap.containsKey("total")) {
addAll((Collection<? extends Map<String, Object>>) resultMap.get("total"));
}
}}; }};
sysDateSnapshotDTO.setCreateDate(new Date()); sysDateSnapshotDTO.setCreateDate(new Date());