Explorar o código

调整留点费用的问题

785834757 hai 3 meses
pai
achega
dc4bbfccd4

+ 1 - 1
tenant/insurance/quotation-summary/src/main/java/com/jzg/quotation/summary/aop/aspect/QuoteVerificationAspect.java

@@ -390,7 +390,7 @@ public class QuoteVerificationAspect {
         BigDecimal taxablePremium = premium.divide(taxFactor,5,RoundingMode.HALF_EVEN);
 
         // 计算应付金额(保费 * 出口比例,保留2位小数)
-        BigDecimal payable = premium.multiply(exportPercent.setScale(5, RoundingMode.DOWN));
+        BigDecimal payable = premium.multiply(exportPercent.setScale(5, RoundingMode.DOWN)).setScale(2,RoundingMode.DOWN);
 
         // 计算各类费用并设置到订单对象
         setPayable.accept(insFeeOrders, payable);