785834757 1 سال پیش
والد
کامیت
1e10a084b9
1فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 9 3
      src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

+ 9 - 3
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -730,10 +730,16 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         }
 
         // 赔付率
-        quoteRespVo.setLossRation(Double.parseDouble(response.getOther().getLossRation()));
+        if(Objects.nonNull(response.getOther().getLossRation())) {
+            quoteRespVo.setLossRation(Double.parseDouble(response.getOther().getLossRation()));
+        }
         // 交强赔付率
-        quoteRespVo.setJqLossRation(Double.parseDouble(response.getOther().getJqLossRation()));
-        quoteRespVo.setSyLossRation(Double.parseDouble(response.getOther().getSyLossRation()));
+        if(Objects.nonNull(response.getOther().getJqLossRation())) {
+            quoteRespVo.setJqLossRation(Double.parseDouble(response.getOther().getJqLossRation()));
+        }
+        if(Objects.nonNull(response.getOther().getSyLossRation())) {
+            quoteRespVo.setSyLossRation(Double.parseDouble(response.getOther().getSyLossRation()));
+        }
 
 
         insAreaCompanyService.insertCompanyAndOrders(insAreaCompany, insAreaCompanyAccidentalDriving);