fix: 日常支出统计,bug修复。

This commit is contained in:
tianyongbao
2024-10-22 12:29:34 +08:00
parent 24694dae2b
commit bf5efee7b5

View File

@@ -2687,10 +2687,31 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
map.put("top10Name",accountsDealRecordVoList.get(9).getName());
map.put("top10",accountsDealRecordVoList.get(9).getAmount());
}
if(accountsDealRecordVoList.size()>10){
map.put("top11Name",accountsDealRecordVoList.get(10).getName());
map.put("top11",accountsDealRecordVoList.get(10).getAmount());
}
if(accountsDealRecordVoList.size()>11){
map.put("top12Name",accountsDealRecordVoList.get(11).getName());
map.put("top12",accountsDealRecordVoList.get(11).getAmount());
}
if(accountsDealRecordVoList.size()>12){
map.put("top13Name",accountsDealRecordVoList.get(12).getName());
map.put("top13",accountsDealRecordVoList.get(12).getAmount());
}
if(accountsDealRecordVoList.size()>13){
map.put("top14Name",accountsDealRecordVoList.get(13).getName());
map.put("top14",accountsDealRecordVoList.get(13).getAmount());
}
if(accountsDealRecordVoList.size()>14){
map.put("top15Name",accountsDealRecordVoList.get(14).getName());
map.put("top15",accountsDealRecordVoList.get(14).getAmount());
}
if(accountsDealRecordVoList.size()>15){
map.put("top16Name",accountsDealRecordVoList.get(15).getName());
map.put("top16",accountsDealRecordVoList.get(15).getAmount());
}
ArrayList<Map<String, Object>> acccountsList = new ArrayList<>();
for (AccountsDealRecordVo vo:accountsDealRecordVoList
) {