修改bug#41944

This commit is contained in:
梁琦涛
2021-11-03 09:44:53 +08:00
parent 2946c85aa9
commit 6719d657a5
@@ -459,6 +459,9 @@ public class PayIncomeContractController extends JeroController<PayIncomeContrac
if(Objects.isNull(p.getPaidAmount())){
p.setPaidAmount(new BigDecimal("0.00"));
}
if(Objects.isNull(p.getReceivableAmount())){
p.setReceivableAmount(new BigDecimal("0.00"));
}
});
BigDecimal b = listProject.stream().map(ProjectOutput::getPaidAmount).reduce(BigDecimal.ZERO,BigDecimal::add);
payIncomeContractDetailOutput.setAmountReceived(b);
@@ -550,6 +553,9 @@ public class PayIncomeContractController extends JeroController<PayIncomeContrac
if(Objects.isNull(p.getPaidAmount())){
p.setPaidAmount(new BigDecimal("0.00"));
}
if(Objects.isNull(p.getReceivableAmount())){
p.setReceivableAmount(new BigDecimal("0.00"));
}
});
BigDecimal b = listProject.stream().map(ProjectOutput::getPaidAmount).reduce(BigDecimal.ZERO,BigDecimal::add);
payIncomeContractDetailOutput.setAmountReceived(b);