|
@@ -1352,7 +1352,11 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
rebateIncentiveAdvPay.calc(baseInfo.getContractAmount().toPlainString(), dyTotalAmount,preSubTotal.getCurrentPeriodEndPay());
|
|
|
}
|
|
|
if (preSubTotal != null) {
|
|
|
- rebateIncentiveAdvPay.setEndPay(addFc.apply(rebateIncentiveAdvPay.getCurrentPay(), preSubTotal.getCurrentPeriodEndPay()));
|
|
|
+ // 对两个参数进行四舍五入后再计算
|
|
|
+ String currentPayRounded = BaseUtils.str2BigDecimal(rebateIncentiveAdvPay.getCurrentPay()).setScale(0, RoundingMode.HALF_UP).toPlainString();
|
|
|
+ String previousPayRounded = BaseUtils.str2BigDecimal(preSubTotal.getCurrentPeriodEndPay()).setScale(0, RoundingMode.HALF_UP).toPlainString();
|
|
|
+ rebateIncentiveAdvPay.setEndPay(addFc.apply(currentPayRounded, previousPayRounded));
|
|
|
+ rebateIncentiveAdvPay.setRetained(rebateIncentiveAdvPay.getEndPay());
|
|
|
} else {
|
|
|
rebateIncentiveAdvPay.setEndPay(rebateIncentiveAdvPay.getCurrentPay());
|
|
|
}
|