瀏覽代碼

补录订单费用计算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();