785834757 1 год назад
Родитель
Сommit
1e10a084b9

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