This commit is contained in:
钱涛 2025-01-14 09:15:09 +08:00
parent 5ec4fc3516
commit d48f6131e0
1 changed files with 6 additions and 0 deletions

View File

@ -2549,6 +2549,12 @@ public class OtherDeductionServiceImpl extends Service implements OtherDeduction
getFreeIncomeMapper().updateIgnoreNull(po);
}
List<FreeIncomePO> freeIncomePOS = getFreeIncomeMapper().listSome(FreeIncomePO.builder().mainId(mainId).build());
String sum = freeIncomePOS.stream().filter(po -> NumberUtil.isNumber(po.getFreeAmount())).map(po -> new BigDecimal(po.getFreeAmount())).reduce(BigDecimal.ZERO, BigDecimal::add).toPlainString();
deductionPO.setFreeIncome(sum);
// getOtherDeductionMapper().updateData();
}
@Override