|
|
|
@ -143,6 +143,11 @@ public class AlCollectionServiceImpl extends ServiceImpl<AlCollectionMapper, AlC |
|
|
|
|
} |
|
|
|
|
OverdueDetailResponse overdueDetailResponse = this.getBaseMapper().getOverdueDetailByInsuranceId(insuranceId); |
|
|
|
|
if (null != overdueDetailResponse) { |
|
|
|
|
// 催收次数
|
|
|
|
|
Integer numberOfCollection = this.getBaseMapper().getCollectionCountByInsuranceId(insuranceId); |
|
|
|
|
if (null != numberOfCollection) { |
|
|
|
|
overdueDetailResponse.setNumberOfCollection(numberOfCollection); |
|
|
|
|
} |
|
|
|
|
// 逾期金额、逾期利息、其他费用、逾期次数
|
|
|
|
|
Map<String, Object> map = this.getOverdueConditionByInsuranceId(insuranceId); |
|
|
|
|
if (null != map) { |
|
|
|
@ -346,6 +351,8 @@ public class AlCollectionServiceImpl extends ServiceImpl<AlCollectionMapper, AlC |
|
|
|
|
BigDecimal overdueInterest = new BigDecimal(0.00); |
|
|
|
|
// 其他费用
|
|
|
|
|
BigDecimal otherExpenses = new BigDecimal(0.00); |
|
|
|
|
// 返回数据集合
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
List<AlRepaymentEntry> alRepaymentList = alRepaymentEntryMapper.listAlRepaymentByInsuranceId(insuranceId); |
|
|
|
|
if (alRepaymentList != null && alRepaymentList.size() != 0) { |
|
|
|
|
for (AlRepaymentEntry alRepayment : alRepaymentList) { |
|
|
|
@ -353,9 +360,10 @@ public class AlCollectionServiceImpl extends ServiceImpl<AlCollectionMapper, AlC |
|
|
|
|
overdueInterest = overdueInterest.add(alRepayment.getInterest() == null ? new BigDecimal(0.00) : alRepayment.getInterest()); |
|
|
|
|
otherExpenses = otherExpenses.add(alRepayment.getOtherExpenses() == null ? new BigDecimal(0.00) : alRepayment.getOtherExpenses()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("overduePeriods", alRepaymentList.size()); |
|
|
|
|
} else { |
|
|
|
|
map.put("overduePeriods", 0); |
|
|
|
|
} |
|
|
|
|
map.put("overdueAmount", overdueAmount); |
|
|
|
|
map.put("overdueInterest", overdueInterest); |
|
|
|
|
map.put("otherExpenses", otherExpenses); |
|
|
|
|