Compare commits

..

No commits in common. "088c2a8b5b1951462c8a9d7c307d5b629a097fac" and "dbc01b39ed4a4708aba6654577b892a7316e14b2" have entirely different histories.

1 changed files with 1 additions and 4 deletions

View File

@ -42,15 +42,12 @@ 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", "资源申请量");
}}); }});
if (resultMap.containsKey("total")) { addAll((Collection<? extends Map<String, Object>>) resourceService.selectTotal()); // 资源汇聚量
addAll((Collection<? extends Map<String, Object>>) resultMap.get("total"));
}
}}; }};
sysDateSnapshotDTO.setCreateDate(new Date()); sysDateSnapshotDTO.setCreateDate(new Date());