|
@@ -2270,9 +2270,19 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
// 如果比例不相等
|
|
// 如果比例不相等
|
|
|
BigDecimal noOtherCostsProportion = item.getNoOtherCostsProportion();
|
|
BigDecimal noOtherCostsProportion = item.getNoOtherCostsProportion();
|
|
|
|
|
|
|
|
- BigDecimal noNoTaxPremium = byBxLicenseno.getNoNoTaxPremium();
|
|
|
|
|
|
|
+ BigDecimal noNoTaxPremium = byBxLicenseno.getNoPremium();
|
|
|
|
|
|
|
|
- BigDecimal noOtherAmount = noNoTaxPremium.multiply(item.getNoOtherCostsProportion().divide(new BigDecimal(100))); //交强跟单费用
|
|
|
|
|
|
|
+ BigDecimal divisor = new BigDecimal("1.06"); // 最好是使用字符串来避免精度损失
|
|
|
|
|
+
|
|
|
|
|
+ BigDecimal noPremium = noNoTaxPremium.divide(divisor, 5, RoundingMode.HALF_UP);//交强保费 / 1.06
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ BigDecimal noOtherAmount = noPremium.multiply(item.getNoOtherCostsProportion().divide(new BigDecimal(100))); //交强跟单费用
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ byBxLicenseno.setNoOtherCostsPremium(noOtherAmount);
|
|
|
|
|
+ byBxLicenseno.setNoOtherCostsProportion(item.getNoOtherCostsProportion());
|
|
|
|
|
+ byBxLicenseno.setAllFeeValue(this.calculateTotal(noOtherAmount,null,null));
|
|
|
|
|
|
|
|
byBxLicenseno.setOtherFeevalue(this.calculateTotal(noOtherAmount,null,null));
|
|
byBxLicenseno.setOtherFeevalue(this.calculateTotal(noOtherAmount,null,null));
|
|
|
byBxLicenseno.setOtherFeerate(this.calculateTotal(noOtherCostsProportion,null ,null));
|
|
byBxLicenseno.setOtherFeerate(this.calculateTotal(noOtherCostsProportion,null ,null));
|