Compare commits
3 Commits
dbc01b39ed
...
088c2a8b5b
Author | SHA1 | Date |
---|---|---|
wangliwen | 088c2a8b5b | |
wangliwen | 011753bb7d | |
wangliwen | ad6deaf71f |
|
@ -42,12 +42,15 @@ public class SysDateSnapshotServiceImpl extends CrudServiceImpl<SysDateSnapshotD
|
|||
public void snapshotAction(Integer type) {
|
||||
SysDateSnapshotDTO sysDateSnapshotDTO = new SysDateSnapshotDTO();
|
||||
long countApply = tAbilityApplicationService.countApplyAll(); // 资源申请量
|
||||
HashMap<String, Object> resultMap = (HashMap<String, Object>) resourceService.selectTotal();
|
||||
List<Map<String, Object>> snapshot = new ArrayList<Map<String, Object>>() {{
|
||||
add(new LinkedHashMap<String, Object>() {{
|
||||
put("count", countApply);
|
||||
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());
|
||||
|
|
Loading…
Reference in New Issue