Compare commits

..

No commits in common. "011753bb7d3405099b4ed9d84b5667d9231063d4" and "66d62817670df9d080d3fa60f3c5a176653c7af5" 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) {
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", "资源申请量");
}});
if (resultMap.containsKey("total")) {
addAll((Collection<? extends Map<String, Object>>) resultMap.get("total"));
}
addAll((Collection<? extends Map<String, Object>>) resourceService.selectTotal()); // 资源汇聚量
}};
sysDateSnapshotDTO.setCreateDate(new Date());