|
@@ -509,16 +509,22 @@ public class ExaminationBasicServiceImpl extends BaseServiceImpl<Long, Examinati
|
|
|
dayPayments.put(e,BigDecimal.ZERO);
|
|
|
}
|
|
|
});
|
|
|
+ LinkedHashMap<String,BigDecimal> hashMap1 = new LinkedHashMap<>();
|
|
|
+ dayIncomes.entrySet().stream().sorted(Map.Entry.comparingByKey())
|
|
|
+ .forEachOrdered(e -> hashMap1.put(e.getKey(), e.getValue()));
|
|
|
+ LinkedHashMap<String,BigDecimal> hashMap2 = new LinkedHashMap<>();
|
|
|
+ dayPayments.entrySet().stream().sorted(Map.Entry.comparingByKey())
|
|
|
+ .forEachOrdered(e -> hashMap2.put(e.getKey(), e.getValue()));
|
|
|
|
|
|
BigDecimal annualPayment = examManualLedgerDao.getAnnualPayment(tenantId);
|
|
|
BigDecimal monthPayment = examManualLedgerDao.getMonthPayment(tenantId);
|
|
|
- HashMap<Object, Object> resultMap = new HashMap<>();
|
|
|
+ HashMap<Object, Object> resultMap = new HashMap<>(6);
|
|
|
resultMap.put("annualIncome",annualIncome);
|
|
|
resultMap.put("monthIncome",monthIncome);
|
|
|
- resultMap.put("dayIncomes",dayIncomes);
|
|
|
+ resultMap.put("dayIncomes",hashMap1);
|
|
|
resultMap.put("annualPayment",annualPayment);
|
|
|
resultMap.put("monthPayment",monthPayment);
|
|
|
- resultMap.put("dayPayments",dayPayments);
|
|
|
+ resultMap.put("dayPayments",hashMap2);
|
|
|
return resultMap;
|
|
|
}
|
|
|
}
|