Quellcode durchsuchen

费用校验退回bug

wks vor 1 Jahr
Ursprung
Commit
18006af820

+ 11 - 1
src/main/java/com/ydtech/modules/order/service/impl/InsAreaCompanyServiceImpl.java

@@ -1024,11 +1024,21 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
 
         costsNews.get(0).setJqCarCostsProportion(insAreaCompanyExternalFee.getJqSuperviseCostsProportion().toString());
         costsNews.get(0).setJqCarOtherCostsProportion(insAreaCompanyExternalFee.getJqOtherCostsProportion().toString());
+        BigDecimal jqCostsProportion = insAreaCompanyExternalFee.getJqSuperviseCostsProportion()
+                .add(insAreaCompanyExternalFee.getJqOtherCostsProportion());
+        costsNews.get(0).setJqCostsProportion(jqCostsProportion.toString());
+
         costsNews.get(0).setSyCarCostsProportion(insAreaCompanyExternalFee.getSySuperviseCostsProportion().toString());
         costsNews.get(0).setSyCarOtherCostsProportion(insAreaCompanyExternalFee.getSyOtherCostsProportion().toString());
+        BigDecimal syCostsProportion = insAreaCompanyExternalFee.getSySuperviseCostsProportion()
+                .add(insAreaCompanyExternalFee.getSyOtherCostsProportion());
+        costsNews.get(0).setSyCostsProportion(syCostsProportion.toString());
+
         costsNews.get(0).setNoCarCostsProportion(insAreaCompanyExternalFee.getNoSuperviseCostsProportion().toString());
         costsNews.get(0).setNoCarOtherCostsProportion(insAreaCompanyExternalFee.getNoOtherCostsProportion().toString());
-
+        BigDecimal noCostsProportion = insAreaCompanyExternalFee.getNoSuperviseCostsProportion()
+                .add(insAreaCompanyExternalFee.getNoOtherCostsProportion());
+        costsNews.get(0).setNoCostsProportion(noCostsProportion.toString());
         //计算费用
         feeRuleSchemeNewService.calcCostsExternal(costsNews.get(0), insAreaCompany);