This commit is contained in:
parent
5ec4fc3516
commit
d48f6131e0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue