|
|
@@ -2,12 +2,9 @@ package com.jzg.quotation.huanong.crawler.entity.request;
|
|
|
|
|
|
import cn.hutool.core.codec.Base64;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
-import com.jzg.commons.entity.quote.vo.CarInfoVo;
|
|
|
-import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
|
-import com.jzg.commons.entity.quote.vo.KindInfoVo;
|
|
|
-import com.jzg.commons.entity.quote.vo.RiskInfoVo;
|
|
|
-import com.jzg.commons.entity.quote.vo.QuoteVo;
|
|
|
+import com.jzg.commons.entity.quote.vo.*;
|
|
|
import com.jzg.quotation.huanong.crawler.entity.HuaNongCrawlerConfigureParameters;
|
|
|
+import com.jzg.quotation.huanong.crawler.entity.response.HuaNongCrawlerBaseCodeResponse;
|
|
|
import com.jzg.quotation.huanong.crawler.entity.response.HuaNongCrawlerComInfoQueryResponse;
|
|
|
import com.jzg.quotation.huanong.crawler.entity.response.HuaNongCrawlerModelsQueryResponse;
|
|
|
import com.jzg.quotation.huanong.crawler.entity.response.HuaNongCrawlerUserTypeAndProxyInfoQueryResponse;
|
|
|
@@ -16,7 +13,6 @@ import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
import java.io.Serial;
|
|
|
-import java.io.Serializable;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
@@ -29,7 +25,7 @@ import java.util.List;
|
|
|
**/
|
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
|
-public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHead {
|
|
|
+public class HuaNongCrawlerQuotedPriceRequestRequest implements HuaNongHeadRequest {
|
|
|
|
|
|
@Serial
|
|
|
private static final long serialVersionUID = -5873004327248461555L;
|
|
|
@@ -52,18 +48,21 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("businessData")
|
|
|
private BusinessDataDTO businessData;
|
|
|
|
|
|
- public HuaNongCrawlerQuotedPriceRequest(String token,
|
|
|
- String username,
|
|
|
- QuoteVo quoteVo,
|
|
|
- HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO,
|
|
|
- HuaNongCrawlerConfigureParameters huaNongCrawlerConfigureParameter,
|
|
|
- String actualValue) {
|
|
|
+ public HuaNongCrawlerQuotedPriceRequestRequest(String token,
|
|
|
+ String username,
|
|
|
+ QuoteVo quoteVo,
|
|
|
+ String loginComCode,
|
|
|
+ String actualValue,
|
|
|
+ HuaNongCrawlerConfigureParameters parameters,
|
|
|
+ HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO,
|
|
|
+ HuaNongCrawlerQuotedPriceRequestRequest.BusinessDataDTO.SaleInfoDTO saleInfoDTO) {
|
|
|
this.head = new HuaNongCrawlerRequestBaseHead(token);
|
|
|
- this.loginCom = huaNongCrawlerConfigureParameter.getLoginComCode();
|
|
|
+ this.loginCom = loginComCode;
|
|
|
this.userCode = username;
|
|
|
- this.comeCode = huaNongCrawlerConfigureParameter.getComCode();
|
|
|
- this.agentCode = "";
|
|
|
- this.businessData = new BusinessDataDTO(quoteVo, carModelDTO, huaNongCrawlerConfigureParameter.getLoginComCode(), huaNongCrawlerConfigureParameter.getComCode(), actualValue);
|
|
|
+ this.comeCode = parameters.getComCode();
|
|
|
+ this.agentCode = saleInfoDTO.getAgentCode();
|
|
|
+ this.businessData = new BusinessDataDTO(quoteVo, carModelDTO, loginComCode, parameters.getLoginCom(), actualValue, saleInfoDTO);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@NoArgsConstructor
|
|
|
@@ -149,8 +148,9 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private List<Object> glassInfo;
|
|
|
|
|
|
|
|
|
- public BusinessDataDTO(QuoteVo quoteVo, HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO, String loginCom, String comeCode, String actualValue) {
|
|
|
- this.businessMain = new BusinessMainDTO(loginCom, comeCode);
|
|
|
+ public BusinessDataDTO(QuoteVo quoteVo, HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO, String loginCom, String loginComName, String actualValue, HuaNongCrawlerQuotedPriceRequestRequest.BusinessDataDTO.SaleInfoDTO saleInfoDTO) {
|
|
|
+ this.saleInfo = saleInfoDTO;
|
|
|
+ this.businessMain = new BusinessMainDTO(loginCom, loginComName);
|
|
|
this.insuredObject = new InsuredObjectDTO(carModelDTO, quoteVo.getCarInfoVo(), quoteVo.getOwnersInfo(), actualValue);
|
|
|
this.platFormMessageNvehBean = new PlatFormMessageNvehBeanDTO("");
|
|
|
this.sum = 0;
|
|
|
@@ -251,40 +251,40 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("isAloneInsureNveh")
|
|
|
private Integer isAloneInsureNveh;
|
|
|
|
|
|
- public BusinessMainDTO(String loginCom, String comeCode) {
|
|
|
+ public BusinessMainDTO(String makeCom, String makeComName) {
|
|
|
this.accessSource = "";
|
|
|
this.agreementNo = "";
|
|
|
this.appointAreaCode = "";
|
|
|
- this.argueSolution = "";
|
|
|
+ this.argueSolution = "1";
|
|
|
this.argueSolutionCom = "";
|
|
|
- this.beforeFXQStockOnline = beforeFXQStockOnline;
|
|
|
- this.billAcceptDate = billAcceptDate;
|
|
|
+ this.beforeFXQStockOnline = false;
|
|
|
+ this.billAcceptDate = "";
|
|
|
this.businessType = "2";
|
|
|
- this.constract5 = constract5;
|
|
|
- this.hnscoreGroup = hnscoreGroup;
|
|
|
- this.inputDateTime = inputDateTime;
|
|
|
- this.isAloneCorrectingNveh = isAloneCorrectingNveh;
|
|
|
- this.isAsync = isAsync;
|
|
|
- this.isCorrectGLASS = isCorrectGLASS;
|
|
|
- this.isCorrectHOME = isCorrectHOME;
|
|
|
- this.isCorrectNVEH = isCorrectNVEH;
|
|
|
- this.isElectronicInsuredFlag = isElectronicInsuredFlag;
|
|
|
- this.isFace = isFace;
|
|
|
+ this.constract5 = "";
|
|
|
+ this.hnscoreGroup = "";
|
|
|
+ this.inputDateTime = "";
|
|
|
+ this.isAloneCorrectingNveh = "";
|
|
|
+ this.isAsync = false;
|
|
|
+ this.isCorrectGLASS = false;
|
|
|
+ this.isCorrectHOME = false;
|
|
|
+ this.isCorrectNVEH = false;
|
|
|
+ this.isElectronicInsuredFlag = false;
|
|
|
+ this.isFace = "";
|
|
|
this.makeCom = makeCom;
|
|
|
this.makeComName = makeComName;
|
|
|
- this.operateDateTime = operateDateTime;
|
|
|
- this.operatorName = operatorName;
|
|
|
- this.relateType = relateType;
|
|
|
- this.underWriteEndDate = underWriteEndDate;
|
|
|
- this.underwritingReminderFlag = underwritingReminderFlag;
|
|
|
- this.verificationCode = verificationCode;
|
|
|
- this.reCalculateFlag = reCalculateFlag;
|
|
|
- this.suggestedDiscountQuoted = suggestedDiscountQuoted;
|
|
|
- this.priceAdjustType = priceAdjustType;
|
|
|
- this.quoteFlag = quoteFlag;
|
|
|
- this.quoteMd5 = quoteMd5;
|
|
|
- this.isPeerComparison = isPeerComparison;
|
|
|
- this.isRunFlag = isRunFlag;
|
|
|
+ this.operateDateTime = "";
|
|
|
+ this.operatorName = "";
|
|
|
+ this.relateType = "";
|
|
|
+ this.underWriteEndDate = "";
|
|
|
+ this.underwritingReminderFlag = "";
|
|
|
+ this.verificationCode = "";
|
|
|
+ this.reCalculateFlag = "0";
|
|
|
+ this.suggestedDiscountQuoted = "";
|
|
|
+ this.priceAdjustType = "1";
|
|
|
+ this.quoteFlag = "0";
|
|
|
+ this.quoteMd5 = "";
|
|
|
+ this.isPeerComparison = "";
|
|
|
+ this.isRunFlag = "";
|
|
|
this.bjLogId = "";
|
|
|
this.lastPolicyNos = Collections.emptyList();
|
|
|
this.isAloneInsureNveh = 0;
|
|
|
@@ -500,7 +500,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("certificateDate")
|
|
|
private String certificateDate;
|
|
|
|
|
|
- public PolicyCarDTO(CarInfoVo carInfoVo, CustomerInfoVo ownersInfo, HuaNongCrawlerModelsQueryResponse.CarModelDTO.FullCarDataDTO fullCarDataDTO, String actualValue) {
|
|
|
+ public PolicyCarDTO(CarInfoVo carInfoVo, CustomerInfoVo ownersInfo, HuaNongCrawlerModelsQueryResponse.CarModelDTO.FullCarDataDTO fullCarDataDTO, String actualValue) {
|
|
|
this.actualValue = actualValue;
|
|
|
this.bankCode = "";
|
|
|
this.bankName = "";
|
|
|
@@ -878,6 +878,8 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
public SaleInfoDTO(HuaNongCrawlerComInfoQueryResponse.ComListDTO comListDTO,
|
|
|
HuaNongCrawlerUserTypeAndProxyInfoQueryResponse.HandlerListDTO handlerListDTO,
|
|
|
HuaNongCrawlerUserTypeAndProxyInfoQueryResponse.AgentInfoListDTO agentInfoListDTO,
|
|
|
+ HuaNongCrawlerUserTypeAndProxyInfoQueryResponse.ProducerListDTO producerListDTO,
|
|
|
+ HuaNongCrawlerBaseCodeResponse.BaseInfoDTO baseInfoDTO,
|
|
|
String callerName) {
|
|
|
this.agentAddress = agentInfoListDTO.getAgentAddress();
|
|
|
this.agentCode = agentInfoListDTO.getAgentCode();
|
|
|
@@ -901,12 +903,11 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
this.staffName = "";
|
|
|
this.teamCode = handlerListDTO.getTeamCode();
|
|
|
this.teamName = handlerListDTO.getTeamName();
|
|
|
- this.channelSource = "";
|
|
|
- this.channelSourceName = "";
|
|
|
-
|
|
|
- this.producerCode = "";
|
|
|
- this.producerName = "";
|
|
|
+ this.channelSource = baseInfoDTO.getCode();
|
|
|
+ this.channelSourceName = baseInfoDTO.getValue();
|
|
|
|
|
|
+ this.producerCode = producerListDTO.getProducerCode();
|
|
|
+ this.producerName = producerListDTO.getProducerName();
|
|
|
}
|
|
|
|
|
|
@NoArgsConstructor
|
|
|
@@ -953,7 +954,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
this.handlerName = handlerListDTO.getHandlerName();
|
|
|
this.handlerIdentifynumber = handlerListDTO.getHandlerCode();
|
|
|
this.handlerMobile = handlerListDTO.getHandlerMobile();
|
|
|
- this.riskClassType = "201705";
|
|
|
+ this.riskClassType = handlerListDTO.getRiskClassType();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1255,7 +1256,9 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private static ContractDTO getBiContractDTO(RiskInfoVo biRiskInfoVo, List<KindInfoVo> kindInfoVo) {
|
|
|
ContractDTO contractDTO = new ContractDTO();
|
|
|
|
|
|
- List<CoverageDTO> coverageDTOS = kindInfoVo.stream().map(kind -> new CoverageDTO(biRiskInfoVo, kind)).toList();
|
|
|
+ List<CoverageDTO> coverageDTOS = kindInfoVo.stream()
|
|
|
+ .map(kind -> new CoverageDTO(biRiskInfoVo, kind))
|
|
|
+ .toList();
|
|
|
contractDTO.setCoverage(coverageDTOS);
|
|
|
|
|
|
return new ContractDTO();
|