Browse Source

泰山优化车身颜色

wangguoqiang 3 tháng trước cách đây
mục cha
commit
e89fd06c2e

+ 7 - 0
tenant/insurance/quotation-taishan/src/main/java/com/jzg/quotation/taishan/crawler/service/impl/TaiShanCrawlerRequestImpl.java

@@ -128,6 +128,13 @@ public class TaiShanCrawlerRequestImpl implements TaiShanCrawlerRequest {
         TaiShanCrawlerRiskManagementResponse taiShanCrawlerRiskManagementResponse = null;
         boolean success = false;
         if (exception.getCode().equals("H1")){
+            String colorCode = quoteVo.getCarInfoVo().getColorCode();
+            if(org.apache.commons.lang3.StringUtils.isBlank(colorCode)){
+                taiShanCrawlerQuotationRequest.getVehicleInfo().setCarColor("01");
+            }else{
+                taiShanCrawlerQuotationRequest.getVehicleInfo().setCarColor(colorCode);
+            }
+
             // 3.1 保存报价信息接口
             this.resultCoverSave(quoteVo,taiShanCrawlerQuotationRequest,taiShanCrawlerQuotationResponse);
             log.info("taiShanCrawlerQuotationRequest:{}", JSON.toJSONString(taiShanCrawlerQuotationRequest));