Просмотр исходного кода

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

dongxin 1 год назад
Родитель
Сommit
4e7ffa5b66

+ 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();