Kaynağa Gözat

1. 国任增加赔付率

785834757 1 yıl önce
ebeveyn
işleme
6073f516a1

+ 17 - 0
src/main/java/com/ydtech/modules/order/entity/crawler/response/CrawlerQuoteResponse.java

@@ -362,6 +362,23 @@ public class CrawlerQuoteResponse extends CrawlerBaseResponse {
         @JsonProperty("BiDiscount")
         private String biDiscount;
 
+        /**
+         * 总赔付率
+         */
+        @JsonProperty("loss_ration")
+        private String lossRation;
+
+        /**
+         * 交强赔付率
+         */
+        @JsonProperty("jq_loss_ration")
+        private String jqLossRation;
+
+        /**
+         * 商业赔付率
+         */
+        @JsonProperty("sy_loss_ration")
+        private String syLossRation;
 
 
         public String getDiscount() {

+ 5 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -729,6 +729,11 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
             insAreaCompany.setExtendInfo(extendInfo.toString());
         }
 
+        // 赔付率
+        quoteRespVo.setLossRation(Double.parseDouble(response.getOther().getLossRation()));
+        // 交强赔付率
+        quoteRespVo.setJqLossRation(Double.parseDouble(response.getOther().getJqLossRation()));
+        quoteRespVo.setSyLossRation(Double.parseDouble(response.getOther().getSyLossRation()));
 
 
         insAreaCompanyService.insertCompanyAndOrders(insAreaCompany, insAreaCompanyAccidentalDriving);