فهرست منبع

补录订单费用计算bug的修复

dongxin 1 سال پیش
والد
کامیت
4e7ffa5b66
1فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 10 3
      src/main/java/com/ydtech/modules/order/service/impl/InsAreaCompanyServiceImpl.java

+ 10 - 3
src/main/java/com/ydtech/modules/order/service/impl/InsAreaCompanyServiceImpl.java

@@ -584,10 +584,17 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
         PtlAgreementProductCostsNew ptlAgreementProductCostsNew = costsNews.get(0);
         ptlAgreementProductCostsNew.blank();
 
-        quoteVo.setJqSuperviseCostsProportion(new BigDecimal(ptlAgreementProductCostsNew.getJqCarCostsProportion()));
-        quoteVo.setSySuperviseCostsProportion(new BigDecimal(ptlAgreementProductCostsNew.getSyCarCostsProportion()));
-        quoteVo.setNoSuperviseCostsProportion(new BigDecimal(ptlAgreementProductCostsNew.getNoCarCostsProportion()));
+        if(StringUtils.isNotBlank(quoteVo.getJqpolicyno())){
+            quoteVo.setJqSuperviseCostsProportion(new BigDecimal(ptlAgreementProductCostsNew.getJqCarCostsProportion()));
+        }
+
+        if(StringUtils.isNotBlank(quoteVo.getSypolicyno())){
+            quoteVo.setSySuperviseCostsProportion(new BigDecimal(ptlAgreementProductCostsNew.getSyCarCostsProportion()));
+        }
 
+        if(StringUtils.isNotBlank(quoteVo.getJypolicyno())){
+            quoteVo.setNoSuperviseCostsProportion(new BigDecimal(ptlAgreementProductCostsNew.getNoCarCostsProportion()));
+        }
 
         InsAreaCompany insAreaCompany = new InsAreaCompany();
         String subOrderNo = IdGenerate.nextId();