xuqiang 4 mesi fa
parent
commit
aa1bdf8e15

+ 4 - 4
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/build/AnShengCrawlerApplyApplicationRequestBuild.java

@@ -25,7 +25,7 @@ public final class AnShengCrawlerApplyApplicationRequestBuild {
         throw new IllegalStateException("Utility class");
         throw new IllegalStateException("Utility class");
     }
     }
 
 
-    public static AnShengCrawlerApplyApplicationRequest build(AnShengCrawlerCalculatePremiumApplyMessage crawlerCalculatePremiumApply, AnShengCrawlerCalculatePremiumApplyResponse calculatePremiumApply, AnShengCrawlerGetUserDetailResponse.DataDTO.AgentDefineDTO userDetailResponse, String compulsoryVersionNo) {
+    public static AnShengCrawlerApplyApplicationRequest build(AnShengCrawlerCalculatePremiumApplyMessage crawlerCalculatePremiumApply, AnShengCrawlerCalculatePremiumApplyResponse calculatePremiumApply, AnShengCrawlerGetUserDetailResponse.DataDTO.AgentDefineDTO userDetailResponse, String compulsoryVersionNo,String brand) {
         AnShengCrawlerApplyApplicationRequest autoSpecialPromiseRequest = new AnShengCrawlerApplyApplicationRequest();
         AnShengCrawlerApplyApplicationRequest autoSpecialPromiseRequest = new AnShengCrawlerApplyApplicationRequest();
         String jsonString = JSONObject.toJSONString(calculatePremiumApply);
         String jsonString = JSONObject.toJSONString(calculatePremiumApply);
         String personnelName = InfoExtractUtil.extractPersonnelName(jsonString);
         String personnelName = InfoExtractUtil.extractPersonnelName(jsonString);
@@ -59,7 +59,7 @@ public final class AnShengCrawlerApplyApplicationRequestBuild {
             //contractsDTO.setBrandAutoModel(brandAutoModelDTO);
             //contractsDTO.setBrandAutoModel(brandAutoModelDTO);
             contractsDTO.setSaleChannelSource(new AnShengCrawlerApplyApplicationRequest.ContractsDTO.SaleChannelSourceDTO(""));
             contractsDTO.setSaleChannelSource(new AnShengCrawlerApplyApplicationRequest.ContractsDTO.SaleChannelSourceDTO(""));
             contractsDTO.setUnderwriteInfos(List.of(new AnShengCrawlerApplyApplicationRequest.ContractsDTO.UnderwriteInfosDTO("1", "")));
             contractsDTO.setUnderwriteInfos(List.of(new AnShengCrawlerApplyApplicationRequest.ContractsDTO.UnderwriteInfosDTO("1", "")));
-            AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO policyExtendDTO = buildPolicyExtend(insuranerName, personDTO.getMobileTelephone());
+            AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO policyExtendDTO = buildPolicyExtend(insuranerName, personDTO.getMobileTelephone(),brand);
             contractsDTO.setPolicyExtend(policyExtendDTO);
             contractsDTO.setPolicyExtend(policyExtendDTO);
             // 险种信息
             // 险种信息
             List<AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyCoveragesDTO> policyCoveragesDTO = buildPolicyCoveragesList(responseContracts.getPolicyCoverages(), requestContracts.getPolicyCoverages());
             List<AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyCoveragesDTO> policyCoveragesDTO = buildPolicyCoveragesList(responseContracts.getPolicyCoverages(), requestContracts.getPolicyCoverages());
@@ -539,7 +539,7 @@ public final class AnShengCrawlerApplyApplicationRequestBuild {
         return policySaleInfoDTO;
         return policySaleInfoDTO;
     }
     }
 
 
-    private static AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO buildPolicyExtend(String insuranerName, String phone) {
+    private static AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO buildPolicyExtend(String insuranerName, String phone,String brand) {
         AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO policyExtend = new AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO();
         AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO policyExtend = new AnShengCrawlerApplyApplicationRequest.ContractsDTO.PolicyExtendDTO();
         policyExtend.setOrderNumber("");
         policyExtend.setOrderNumber("");
         policyExtend.setRiskSharingBusinessType("1");
         policyExtend.setRiskSharingBusinessType("1");
@@ -549,7 +549,7 @@ public final class AnShengCrawlerApplyApplicationRequestBuild {
         policyExtend.setIssueChannel("5");
         policyExtend.setIssueChannel("5");
         policyExtend.setUsageAttributeCode("1");
         policyExtend.setUsageAttributeCode("1");
         policyExtend.setRunRegionCode("");
         policyExtend.setRunRegionCode("");
-        policyExtend.setBrand("");
+        policyExtend.setBrand(brand);
         policyExtend.setInsuranceVehicleRelationship("1");
         policyExtend.setInsuranceVehicleRelationship("1");
         policyExtend.setUsageAttributeCodePM("");
         policyExtend.setUsageAttributeCodePM("");
         policyExtend.setAvgMile("");
         policyExtend.setAvgMile("");

+ 58 - 1
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/build/AnShengCrawlerQuoteResultsVoBuild.java

@@ -1,17 +1,23 @@
 package com.jzg.quotation.ansheng.crawler.build;
 package com.jzg.quotation.ansheng.crawler.build;
 
 
 
 
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
 import com.jzg.commons.constants.dict.InsOrderStatusEnum;
 import com.jzg.commons.constants.dict.InsOrderStatusEnum;
 import com.jzg.commons.entity.quote.vo.KindInfoVo;
 import com.jzg.commons.entity.quote.vo.KindInfoVo;
 import com.jzg.commons.entity.quote.vo.QuoteVo;
 import com.jzg.commons.entity.quote.vo.QuoteVo;
 import com.jzg.commons.entity.quote.vo.RiskInfoVo;
 import com.jzg.commons.entity.quote.vo.RiskInfoVo;
 import com.jzg.commons.entity.quote.vo.aggregated.QuoteResultsVo;
 import com.jzg.commons.entity.quote.vo.aggregated.QuoteResultsVo;
+import com.jzg.commons.util.StringUtils;
 import com.jzg.quotation.ansheng.crawler.constant.enums.DepartmentPlanCode;
 import com.jzg.quotation.ansheng.crawler.constant.enums.DepartmentPlanCode;
 import com.jzg.quotation.ansheng.crawler.entity.response.AnShengCrawlerCalculatePremiumApplyResponse;
 import com.jzg.quotation.ansheng.crawler.entity.response.AnShengCrawlerCalculatePremiumApplyResponse;
 import com.jzg.quotation.commons.component.ConversionOfQuoteInformation;
 import com.jzg.quotation.commons.component.ConversionOfQuoteInformation;
+import lombok.extern.slf4j.Slf4j;
 
 
 import java.util.List;
 import java.util.List;
 
 
+
+@Slf4j
 public final class AnShengCrawlerQuoteResultsVoBuild {
 public final class AnShengCrawlerQuoteResultsVoBuild {
 
 
     public AnShengCrawlerQuoteResultsVoBuild() {
     public AnShengCrawlerQuoteResultsVoBuild() {
@@ -57,11 +63,62 @@ public final class AnShengCrawlerQuoteResultsVoBuild {
             }
             }
         });
         });
 
 
-
+        quoteResultsVo.setScoreVo(buildScoreVo(calculatePremiumApply));
         quoteResultsVo.setQuoteStatusEnum(InsOrderStatusEnum.WAIT_AUDIT);
         quoteResultsVo.setQuoteStatusEnum(InsOrderStatusEnum.WAIT_AUDIT);
         return quoteResultsVo;
         return quoteResultsVo;
     }
     }
 
 
+
+    private static QuoteResultsVo.ScoreVo buildScoreVo( AnShengCrawlerCalculatePremiumApplyResponse calculatePremiumApply) {
+        QuoteResultsVo.ScoreVo scoreVo = new QuoteResultsVo.ScoreVo();
+        JSONArray scoreArray = new JSONArray();
+        AnShengCrawlerCalculatePremiumApplyResponse.DataDTO data = calculatePremiumApply.getData();
+        String basicstring = data.getBasicstring();
+        if (StringUtils.isNotEmpty(basicstring)){
+            String[] parts = basicstring.split(":");
+            scoreArray.add(new JSONObject()
+                    .fluentPut("scoreName",parts.length > 0 ? parts[0].trim() : "")
+                    .fluentPut("scoreKey","basicstring")
+                    .fluentPut("score",parts.length > 1 ? parts[1].trim() : ""));
+        }
+        String blackDivisor = data.getBlackDivisor();
+        if (StringUtils.isNotEmpty(blackDivisor)){
+            String[] black = blackDivisor.split(":");
+            scoreArray.add(new JSONObject()
+                    .fluentPut("scoreName",black.length > 0 ? black[0].trim() : "")
+                    .fluentPut("scoreKey","blackDivisor")
+                    .fluentPut("score",black.length > 0 ? black[1].trim() : ""));
+        }
+        String comprehensiveScoreStr = data.getComprehensiveScoreStr();
+        if (StringUtils.isNotEmpty(comprehensiveScoreStr)){
+            String[] comprehensiveScore = comprehensiveScoreStr.split(":");
+            scoreArray.add(new JSONObject()
+                    .fluentPut("scoreName",comprehensiveScore.length > 0 ? comprehensiveScore[0].trim() : "")
+                    .fluentPut("scoreKey","comprehensiveScoreStr")
+                    .fluentPut("score",comprehensiveScore.length > 0 ? comprehensiveScore[1].trim() : ""));
+        }
+        String riskScore = data.getRiskScore();
+        if (StringUtils.isNotEmpty(riskScore)){
+            String[] riskScoreStr = riskScore.split(":");
+            scoreArray.add(new JSONObject()
+                    .fluentPut("scoreName",riskScoreStr.length > 0 ? riskScoreStr[0].trim() : "")
+                    .fluentPut("scoreKey","riskScore")
+                    .fluentPut("score",riskScoreStr.length > 0 ? riskScoreStr[1].trim() : ""));
+        }
+        String unifiedScore = data.getUnifiedScore();
+        if (StringUtils.isNotEmpty(unifiedScore)){
+            String[] unifiedScoreStr = unifiedScore.split(":");
+            scoreArray.add(new JSONObject()
+                    .fluentPut("scoreName",unifiedScoreStr.length > 0 ? unifiedScoreStr[0].trim() : "")
+                    .fluentPut("scoreKey","unifiedScore")
+                    .fluentPut("score",unifiedScoreStr.length > 0 ? unifiedScoreStr[1].trim() : ""));
+        }
+        scoreVo.setScoreJson(scoreArray);
+        return scoreVo;
+    }
+
+
+
     /**
     /**
      * 构造交强商业时间信息
      * 构造交强商业时间信息
      *
      *

+ 1 - 0
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/constant/enums/RequestUrl.java

@@ -23,6 +23,7 @@ public enum RequestUrl implements CrawlerRequestUrlStandard {
     QUERY_AUTO_MATCH_PRICE_RATIO("portalapi/queryAutoMatchPriceRatio", ""),
     QUERY_AUTO_MATCH_PRICE_RATIO("portalapi/queryAutoMatchPriceRatio", ""),
     SEARCH_VEHICLE_BY_VIN("/portalapi/searchVehicleByVIN", "车架号查询"),
     SEARCH_VEHICLE_BY_VIN("/portalapi/searchVehicleByVIN", "车架号查询"),
     CALCULATE_PREMIUM_APPLY("/portalapi/calculatePremiumApply", "保费计算"),
     CALCULATE_PREMIUM_APPLY("/portalapi/calculatePremiumApply", "保费计算"),
+    AUTORESETTIME("/portalapi/autoResetTime", "计算时间"),
     // 上传影像
     // 上传影像
     FILE_UPLOAD("/portalapi/fileUpload", "影像上传"),
     FILE_UPLOAD("/portalapi/fileUpload", "影像上传"),
     // 核保
     // 核保

+ 1 - 1
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/entity/request/AnShengCrawlerApplyApplicationRequest.java

@@ -1007,7 +1007,7 @@ public class AnShengCrawlerApplyApplicationRequest {
             private String vehicleTypeName;
             private String vehicleTypeName;
             @JsonProperty("makeDate")
             @JsonProperty("makeDate")
             @JSONField(name = "makeDate")
             @JSONField(name = "makeDate")
-            private Integer makeDate;
+            private String makeDate;
             @JsonProperty("detailDesc")
             @JsonProperty("detailDesc")
             @JSONField(name = "detailDesc")
             @JSONField(name = "detailDesc")
             private String detailDesc;
             private String detailDesc;

+ 14 - 17
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/entity/request/AnShengCrawlerCalculatePremiumApplyMessage.java

@@ -13,7 +13,6 @@ import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 import lombok.NoArgsConstructor;
 import org.springframework.util.ObjectUtils;
 import org.springframework.util.ObjectUtils;
-import org.springframework.util.StringUtils;
 
 
 import java.math.BigDecimal;
 import java.math.BigDecimal;
 import java.util.ArrayList;
 import java.util.ArrayList;
@@ -655,7 +654,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
             private String vehicleTypeName;
             private String vehicleTypeName;
             @JsonProperty("makeDate")
             @JsonProperty("makeDate")
             @JSONField(name = "makeDate")
             @JSONField(name = "makeDate")
-            private Integer makeDate;
+            private String makeDate;
             @JsonProperty("stopFlag")
             @JsonProperty("stopFlag")
             @JSONField(name = "stopFlag")
             @JSONField(name = "stopFlag")
             private String stopFlag;
             private String stopFlag;
@@ -790,7 +789,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                 this.seats = carInfoVo.getSeatCount();
                 this.seats = carInfoVo.getSeatCount();
                 this.rbCode = brandAutoModel.getRbCode();
                 this.rbCode = brandAutoModel.getRbCode();
                 this.otherEnergyTypeDesc = "";
                 this.otherEnergyTypeDesc = "";
-                this.madeDate = brandAutoModel.getMakeDate();
+                this.madeDate = dataDTO.getMadeDate();
                 this.exhaustCapability = brandAutoModel.getExhaustCapabilityString();
                 this.exhaustCapability = brandAutoModel.getExhaustCapabilityString();
                 this.noDamageYears = "";
                 this.noDamageYears = "";
                 this.specialVehicleFlag = "";
                 this.specialVehicleFlag = "";
@@ -840,12 +839,9 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                 this.vehicleFgwCode = brandAutoModel.getAutoModelChnName();
                 this.vehicleFgwCode = brandAutoModel.getAutoModelChnName();
                 this.vehicleFgwName = brandAutoModel.getBrandChnName();
                 this.vehicleFgwName = brandAutoModel.getBrandChnName();
                 this.vehicleModelType = "";
                 this.vehicleModelType = "";
-                this.vehicleStyleDesc = "";
+                this.vehicleStyleDesc = "小型轿车";
                 this.vehicleTypeName = carInfoVo.getCarKindName();
                 this.vehicleTypeName = carInfoVo.getCarKindName();
-                if (StringUtils.hasLength(brandAutoModel.getMakeDate())) {
-                    this.makeDate = Integer.valueOf(brandAutoModel.getMakeDate());
-                }
-                this.stopFlag = brandAutoModel.getStopFlag();
+                this.makeDate = "";
                 this.detailDesc = brandAutoModel.getRemark();
                 this.detailDesc = brandAutoModel.getRemark();
                 this.vehicleCategory = "";
                 this.vehicleCategory = "";
                 this.personnelName = personnelName;
                 this.personnelName = personnelName;
@@ -861,7 +857,8 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                 this.vehicleTonnages = "0";
                 this.vehicleTonnages = "0";
                 this.power = brandAutoModel.getPower();
                 this.power = brandAutoModel.getPower();
                 this.maxDesignSpeed = 0;
                 this.maxDesignSpeed = 0;
-                this.runCardCertificateDate = TimeProcessing.dateToDateTime(carInfoVo.getIssueDate());
+                //this.runCardCertificateDate = TimeProcessing.dateToDateTime(carInfoVo.getIssueDate());
+                this.runCardCertificateDate = "";
                 this.customerNegotiatePrice = customerNegotiatePrice;
                 this.customerNegotiatePrice = customerNegotiatePrice;
                 this.originalCustomerNegotiatePrice = customerNegotiatePrice;
                 this.originalCustomerNegotiatePrice = customerNegotiatePrice;
                 this.fleetNo = "";
                 this.fleetNo = "";
@@ -1003,7 +1000,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                 private String dbVehicleWeigth;
                 private String dbVehicleWeigth;
                 @JsonProperty("riskScore")
                 @JsonProperty("riskScore")
                 @JSONField(name = "riskScore")
                 @JSONField(name = "riskScore")
-                private Integer riskScore;
+                private String riskScore;
                 @JsonProperty("riskScoreTwenty")
                 @JsonProperty("riskScoreTwenty")
                 @JSONField(name = "riskScoreTwenty")
                 @JSONField(name = "riskScoreTwenty")
                 private String riskScoreTwenty;
                 private String riskScoreTwenty;
@@ -1096,7 +1093,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                 private String fdConfigId;
                 private String fdConfigId;
                 @JsonProperty("modelDiscount")
                 @JsonProperty("modelDiscount")
                 @JSONField(name = "modelDiscount")
                 @JSONField(name = "modelDiscount")
-                private Double modelDiscount;
+                private String modelDiscount;
                 @JsonProperty("autoFloatHandingCost")
                 @JsonProperty("autoFloatHandingCost")
                 @JSONField(name = "autoFloatHandingCost")
                 @JSONField(name = "autoFloatHandingCost")
                 private Integer autoFloatHandingCost;
                 private Integer autoFloatHandingCost;
@@ -1183,7 +1180,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                     this.ratioFluctuateType = "0";
                     this.ratioFluctuateType = "0";
                     this.repairFactory = "";
                     this.repairFactory = "";
                     this.dbVehicleWeigth = brandAutoModel.getCurbWeightMin();
                     this.dbVehicleWeigth = brandAutoModel.getCurbWeightMin();
-                    this.riskScore = null;
+                    this.riskScore = "";
                     this.riskScoreTwenty = "";
                     this.riskScoreTwenty = "";
                     this.algrId = "";
                     this.algrId = "";
                     this.riskScoreColor = "";
                     this.riskScoreColor = "";
@@ -1214,7 +1211,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                     this.autoFloatRatioOther = "";
                     this.autoFloatRatioOther = "";
                     this.appointAreaCode = "";
                     this.appointAreaCode = "";
                     this.fdConfigId = "";
                     this.fdConfigId = "";
-                    this.modelDiscount = 0D;
+                    this.modelDiscount = "";
                     this.autoFloatHandingCost = 0;
                     this.autoFloatHandingCost = 0;
                     this.modelrate = "";
                     this.modelrate = "";
                     this.advicediscount = "";
                     this.advicediscount = "";
@@ -1809,17 +1806,17 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                         this.certificateType = customerInfoVo.getIdentifyType();
                         this.certificateType = customerInfoVo.getIdentifyType();
                         this.certificateNo = customerInfoVo.getIdentifyNumber();
                         this.certificateNo = customerInfoVo.getIdentifyNumber();
                         this.sexCode = customerInfoVo.getGender();
                         this.sexCode = customerInfoVo.getGender();
-                        this.birthday = customerInfoVo.getBirthday();
-                        this.personnelAge = String.valueOf(customerInfoVo.getAge());
+                        this.birthday = customerInfoVo.getBirthday() + " 00:00:00";
+                        this.personnelAge = String.valueOf(customerInfoVo.getAge() + 1);
                         this.address = customerInfoVo.getAddr();
                         this.address = customerInfoVo.getAddr();
                         this.positionn = "";
                         this.positionn = "";
                         this.mobileTelephone = customerInfoVo.getMobile();
                         this.mobileTelephone = customerInfoVo.getMobile();
                         this.email = "";
                         this.email = "";
                         this.postcode = "030000";
                         this.postcode = "030000";
                         this.vipMark = "1";
                         this.vipMark = "1";
-                        this.effectedDate = customerInfoVo.getIdentifyValidDate();
+                        this.effectedDate = customerInfoVo.getIdentifyValidDate()  + " 00:00:00";
                         this.certType = "0";
                         this.certType = "0";
-                        this.expiredDate = customerInfoVo.getIdentifyValidEndDate();
+                        this.expiredDate = customerInfoVo.getIdentifyValidEndDate() + " 00:00:00";
                         this.isRuralOrUrban = "";
                         this.isRuralOrUrban = "";
                         this.idCardAddress = "";
                         this.idCardAddress = "";
                         this.nationalityType = "142";
                         this.nationalityType = "142";

+ 2 - 1
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/entity/request/AnShengCrawlerSearchVehicleByVinRequest.java

@@ -42,7 +42,7 @@ public class AnShengCrawlerSearchVehicleByVinRequest {
     @JsonProperty("customerSourceCode")
     @JsonProperty("customerSourceCode")
     private String customerSourceCode;
     private String customerSourceCode;
 
 
-    public AnShengCrawlerSearchVehicleByVinRequest(CarInfoVo carInfoVo, String departmentCode, String agentCode) {
+    public AnShengCrawlerSearchVehicleByVinRequest(CarInfoVo carInfoVo, String departmentCode, String agentCode,String realBusinessType) {
         this.vin = carInfoVo.getVinNo();
         this.vin = carInfoVo.getVinNo();
         this.priceType = "04";
         this.priceType = "04";
         if(carInfoVo.isNewEnergyMark()){
         if(carInfoVo.isNewEnergyMark()){
@@ -56,5 +56,6 @@ public class AnShengCrawlerSearchVehicleByVinRequest {
         this.vehicleDBFlag = "1";
         this.vehicleDBFlag = "1";
         this.vehicleType = carInfoVo.getCarKindCode();
         this.vehicleType = carInfoVo.getCarKindCode();
         this.agentCode = agentCode;
         this.agentCode = agentCode;
+        this.realBusinessType = realBusinessType;
     }
     }
 }
 }

+ 8 - 6
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/service/impl/AnShengCrawlerRequestImpl.java

@@ -30,10 +30,7 @@ import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.http.HttpHeaders;
 import org.springframework.http.HttpHeaders;
 
 
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
+import java.util.*;
 import java.util.regex.Matcher;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 import java.util.regex.Pattern;
 import java.util.stream.Collectors;
 import java.util.stream.Collectors;
@@ -98,12 +95,16 @@ public class AnShengCrawlerRequestImpl implements AnShengCrawlerRequest {
         String checkVehicleCodeSecretGenerate = CheckVehicleCodeSecretGenerateUtils.getCheckVehicleCodeSecretGenerate(checkVehicleCode, userDetailResponse.getUserId());
         String checkVehicleCodeSecretGenerate = CheckVehicleCodeSecretGenerateUtils.getCheckVehicleCodeSecretGenerate(checkVehicleCode, userDetailResponse.getUserId());
 
 
         // 车架号查询
         // 车架号查询
-        AnShengCrawlerSearchVehicleByVinRequest anShengCrawlerSearchVehicleByVinRequest = new AnShengCrawlerSearchVehicleByVinRequest(quoteVo.getCarInfoVo(), userDetailResponse.getDepartmentCode(), userDetailResponse.getAgentCode());
+        AnShengCrawlerSearchVehicleByVinRequest anShengCrawlerSearchVehicleByVinRequest = new AnShengCrawlerSearchVehicleByVinRequest(quoteVo.getCarInfoVo(), userDetailResponse.getDepartmentCode(), userDetailResponse.getAgentCode(),userDetailResponse.getRealBusinessType());
         List<AnShengCrawlerSearchVehicleByVinResponse.DataDTO> dataDTOS = anShengCrawlerRequestComponent.searchVehicleByVin(anShengCrawlerSearchVehicleByVinRequest, httpHeaders);
         List<AnShengCrawlerSearchVehicleByVinResponse.DataDTO> dataDTOS = anShengCrawlerRequestComponent.searchVehicleByVin(anShengCrawlerSearchVehicleByVinRequest, httpHeaders);
+        if (Objects.isNull(dataDTOS)){
+            throw new SystemException("车型查询错误");
+        }
         AnShengCrawlerSearchVehicleByVinResponse.DataDTO dataDTO = CarModelsFilterUtils.to(dataDTOS, quoteVo.getCarInfoVo());
         AnShengCrawlerSearchVehicleByVinResponse.DataDTO dataDTO = CarModelsFilterUtils.to(dataDTOS, quoteVo.getCarInfoVo());
         // 报价
         // 报价
         AnShengCrawlerCalculatePremiumApplyMessage crawlerCalculatePremiumApply = new AnShengCrawlerCalculatePremiumApplyMessage(quoteVo, dataDTO, userDetailResponse, departmentPlanCode, checkVehicleCodeSecretGenerate);
         AnShengCrawlerCalculatePremiumApplyMessage crawlerCalculatePremiumApply = new AnShengCrawlerCalculatePremiumApplyMessage(quoteVo, dataDTO, userDetailResponse, departmentPlanCode, checkVehicleCodeSecretGenerate);
         log.info("安盛报价参数:{}", JSONObject.toJSONString(crawlerCalculatePremiumApply));
         log.info("安盛报价参数:{}", JSONObject.toJSONString(crawlerCalculatePremiumApply));
+
         AnShengCrawlerCalculatePremiumApplyResponse calculatePremiumApply = anShengCrawlerRequestComponent.calculatePremiumApply(crawlerCalculatePremiumApply, httpHeaders);
         AnShengCrawlerCalculatePremiumApplyResponse calculatePremiumApply = anShengCrawlerRequestComponent.calculatePremiumApply(crawlerCalculatePremiumApply, httpHeaders);
         // 处理重复投保
         // 处理重复投保
         if (calculatePremiumApply.getMessage().contains("重复投保")) {
         if (calculatePremiumApply.getMessage().contains("重复投保")) {
@@ -127,7 +128,7 @@ public class AnShengCrawlerRequestImpl implements AnShengCrawlerRequest {
                 });
                 });
             });
             });
             log.info("安盛报价返回数据:{}", JSONObject.toJSONString(calculatePremiumApply));
             log.info("安盛报价返回数据:{}", JSONObject.toJSONString(calculatePremiumApply));
-            AnShengCrawlerApplyApplicationRequest autoSpecialPromiseRequest = AnShengCrawlerApplyApplicationRequestBuild.build(crawlerCalculatePremiumApply, calculatePremiumApply, userDetailResponse, compulsoryVersionNo);
+            AnShengCrawlerApplyApplicationRequest autoSpecialPromiseRequest = AnShengCrawlerApplyApplicationRequestBuild.build(crawlerCalculatePremiumApply, calculatePremiumApply, userDetailResponse, compulsoryVersionNo,dataDTO.getBrandAutoModel().getBrand());
             // 缓存数据
             // 缓存数据
             anShengCrawlerCacheComponent.cacheQuoteRequest(ordersNo, autoSpecialPromiseRequest);
             anShengCrawlerCacheComponent.cacheQuoteRequest(ordersNo, autoSpecialPromiseRequest);
         }
         }
@@ -200,6 +201,7 @@ public class AnShengCrawlerRequestImpl implements AnShengCrawlerRequest {
             }
             }
             underwritingResultsVo.setUnderwritingStatus(InsOrderStatusEnum.PAY_PENDING);
             underwritingResultsVo.setUnderwritingStatus(InsOrderStatusEnum.PAY_PENDING);
         }
         }
+        underwritingResultsVo.setPaymentLink("");
         return underwritingResultsVo;
         return underwritingResultsVo;
     }
     }