|
@@ -58,7 +58,7 @@ public class InsuranceHandlingSettlementMonthServiceImpl extends ServiceImpl<Ins
|
|
|
if (item.getTotalAmount() != null && item.getTotalAmount().compareTo(BigDecimal.ZERO) < 0) {
|
|
if (item.getTotalAmount() != null && item.getTotalAmount().compareTo(BigDecimal.ZERO) < 0) {
|
|
|
String formattedDateString = formatDateMinusOneMonth(item.getIncomeSigningTime());
|
|
String formattedDateString = formatDateMinusOneMonth(item.getIncomeSigningTime());
|
|
|
if (StringUtils.isNotEmpty(formattedDateString)) {
|
|
if (StringUtils.isNotEmpty(formattedDateString)) {
|
|
|
- InsuranceHandlingSettlementMonthDto insuranceHandlingSettlementMonthDto = latestByTaskId.get(formattedDateString);
|
|
|
|
|
|
|
+ InsuranceHandlingSettlementMonthDto insuranceHandlingSettlementMonthDto = latestByTaskId.get(item.getIncomeSigningTime());
|
|
|
insuranceHandlingSettlementMonthDto.setTotalAmount(insuranceHandlingSettlementMonthDto.getTotalAmount().add(item.getTotalAmount()));
|
|
insuranceHandlingSettlementMonthDto.setTotalAmount(insuranceHandlingSettlementMonthDto.getTotalAmount().add(item.getTotalAmount()));
|
|
|
latestByTaskId.remove(item.getIncomeSigningTime());
|
|
latestByTaskId.remove(item.getIncomeSigningTime());
|
|
|
latestByTaskId.put(formattedDateString, insuranceHandlingSettlementMonthDto);
|
|
latestByTaskId.put(formattedDateString, insuranceHandlingSettlementMonthDto);
|