|
|
@@ -0,0 +1,2209 @@
|
|
|
+package com.jzg.quotation.taiping.crawler.entity.request;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.jzg.commons.entity.quote.vo.*;
|
|
|
+import com.jzg.quotation.taiping.crawler.constant.KindCodeEnum;
|
|
|
+import com.jzg.quotation.taiping.crawler.entity.TaipingCrawlerConfigureParameters;
|
|
|
+import com.jzg.quotation.taiping.crawler.entity.response.TaiPingCrawlerBrandNameQueryData;
|
|
|
+import com.jzg.quotation.taiping.crawler.entity.response.TaiPingCrawlerFindApplyNoResponse;
|
|
|
+import com.jzg.quotation.taiping.crawler.entity.response.TaiPingCrawlerFindByProductCodeResponse;
|
|
|
+import com.jzg.quotation.taiping.crawler.entity.response.TaiPingCrawlerFindSolutionCodeData;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.time.LocalDate;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Collections;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Optional;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author quchen
|
|
|
+ * @date 2026/5/27 19:41
|
|
|
+ */
|
|
|
+
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+public class TaiPingCrawlerVehicleForPRPQueryRequest {
|
|
|
+ @JsonProperty("riskCodeType")
|
|
|
+ private String riskCodeType;
|
|
|
+
|
|
|
+ @JsonProperty("pfItemMotorDeviceDtoList")
|
|
|
+ private List<Object> pfItemMotorDeviceDtoList;
|
|
|
+
|
|
|
+ @JsonProperty("pfItemKind0801DtoList")
|
|
|
+ private List<PfItemKind0801DtoListDTO> pfItemKind0801DtoList;
|
|
|
+
|
|
|
+ @JsonProperty("pfItemKind0802DtoList")
|
|
|
+ private List<PfItemKind0802DtoListDTO> pfItemKind0802DtoList;
|
|
|
+
|
|
|
+ @JsonProperty("clauseList0801")
|
|
|
+ private List<ClauseList0801DTO> clauseList0801;
|
|
|
+
|
|
|
+ @JsonProperty("clauseList0802")
|
|
|
+ private List<ClauseList0802DTO> clauseList0802;
|
|
|
+
|
|
|
+ @JsonProperty("orderNo")
|
|
|
+ private String orderNo;
|
|
|
+
|
|
|
+ @JsonProperty("pfMainDto")
|
|
|
+ private PfMainDtoDTO pfMainDto;
|
|
|
+
|
|
|
+ @JsonProperty("pfVehicleOwner")
|
|
|
+ private PfVehicleOwnerDTO pfVehicleOwner;
|
|
|
+
|
|
|
+ @JsonProperty("pfRelatedPartyDto")
|
|
|
+ private PfRelatedPartyDtoDTO pfRelatedPartyDto;
|
|
|
+
|
|
|
+ @JsonProperty("pfItemMotorDto")
|
|
|
+ private PfItemMotorDtoDTO pfItemMotorDto;
|
|
|
+
|
|
|
+ @JsonProperty("pfRiskRelatedPartyDto")
|
|
|
+ private PfRiskRelatedPartyDtoDTO pfRiskRelatedPartyDto;
|
|
|
+
|
|
|
+ @JsonProperty("pfProposalCarShipTaxDto")
|
|
|
+ private PfProposalCarShipTaxDtoDTO pfProposalCarShipTaxDto;
|
|
|
+
|
|
|
+ @JsonProperty("pfPolicyInfoDto")
|
|
|
+ private PfPolicyInfoDtoDTO pfPolicyInfoDto;
|
|
|
+
|
|
|
+ @JsonProperty("incrementServiceMatchFlag")
|
|
|
+ private Boolean incrementServiceMatchFlag;
|
|
|
+
|
|
|
+ @JsonProperty("demandNoForce")
|
|
|
+ private String demandNoForce;
|
|
|
+
|
|
|
+ @JsonProperty("demandNoBusi")
|
|
|
+ private String demandNoBusi;
|
|
|
+
|
|
|
+ @JsonProperty("fcProductList")
|
|
|
+ private List<Object> fcProductList;
|
|
|
+
|
|
|
+ @JsonProperty("cjcSaleInfoDto")
|
|
|
+ private Object cjcSaleInfoDto;
|
|
|
+
|
|
|
+ @JsonProperty("fCsaleinfoDto")
|
|
|
+ private Object fCsaleinfoDto;
|
|
|
+
|
|
|
+ @JsonProperty("businessType")
|
|
|
+ private String businessType;
|
|
|
+
|
|
|
+ @JsonProperty("optType")
|
|
|
+ private String optType;
|
|
|
+
|
|
|
+ @JsonProperty("personInd")
|
|
|
+ private String personInd;
|
|
|
+
|
|
|
+ @JsonProperty("productType")
|
|
|
+ private String productType;
|
|
|
+
|
|
|
+ public TaiPingCrawlerVehicleForPRPQueryRequest(QuoteVo quoteVo, TaipingCrawlerConfigureParameters parameters, String orderNo,
|
|
|
+ TaiPingCrawlerBrandNameQueryData.ItemMotorDtoListDTO motor, String carActualValue,
|
|
|
+ TaiPingCrawlerFindByProductCodeResponse.Record record, TaiPingCrawlerFindSolutionCodeData.RecordsDTO taiPingCrawlerFindSolutionCodeData,
|
|
|
+ TaiPingCrawlerFindApplyNoResponse.GsApplyInfoMainDto gsApplyInfoMainDto) {
|
|
|
+ boolean hasCi = quoteVo.getCiRiskInfoVo() != null;
|
|
|
+ boolean hasBi = quoteVo.getBiRiskInfoVo() != null;
|
|
|
+ if (hasCi && hasBi) {
|
|
|
+ this.riskCodeType = "3";
|
|
|
+ } else if (hasCi) {
|
|
|
+ this.riskCodeType = "1";
|
|
|
+ } else if (hasBi) {
|
|
|
+ this.riskCodeType = "2";
|
|
|
+ }
|
|
|
+ this.pfItemMotorDeviceDtoList = Collections.emptyList();
|
|
|
+ Optional.ofNullable(quoteVo.getCiRiskInfoVo()).ifPresent(ciRiskInfoVo -> {
|
|
|
+ this.pfItemKind0801DtoList = List.of(PfItemKind0801DtoListDTO.getCiKindInfo());
|
|
|
+ });
|
|
|
+ this.pfItemKind0802DtoList = PfItemKind0802DtoListDTO.buildKindList(quoteVo.getKindInfoVo(),carActualValue,Integer.parseInt(quoteVo.getCarInfoVo().getSeatCount()));
|
|
|
+ this.clauseList0801 = new ArrayList<>();
|
|
|
+ this.clauseList0802 = new ArrayList<>();
|
|
|
+ this.orderNo = orderNo;
|
|
|
+ // 归属信息
|
|
|
+ this.pfMainDto = new PfMainDtoDTO(record,parameters,taiPingCrawlerFindSolutionCodeData,gsApplyInfoMainDto,quoteVo);
|
|
|
+ // 车主
|
|
|
+ this.pfVehicleOwner = new PfVehicleOwnerDTO(quoteVo.getOwnersInfo(),quoteVo.getCarInfoVo());
|
|
|
+ // 投保人
|
|
|
+ this.pfRelatedPartyDto = new PfRelatedPartyDtoDTO(quoteVo.getPolicyHolderInfo());
|
|
|
+ // 车辆信息
|
|
|
+ this.pfItemMotorDto = new PfItemMotorDtoDTO(quoteVo.getCarInfoVo(), motor, orderNo, carActualValue);
|
|
|
+ // 被保险人
|
|
|
+ this.pfRiskRelatedPartyDto = new PfRiskRelatedPartyDtoDTO(quoteVo.getInsuredPersonInfo());
|
|
|
+ this.pfProposalCarShipTaxDto = new PfProposalCarShipTaxDtoDTO(quoteVo.getVehicleAndVesselTaxVo(),quoteVo.getCarInfoVo());
|
|
|
+ this.pfPolicyInfoDto = new PfPolicyInfoDtoDTO(quoteVo);
|
|
|
+ this.incrementServiceMatchFlag = Boolean.TRUE;
|
|
|
+ this.demandNoForce = "";
|
|
|
+ this.demandNoBusi = "";
|
|
|
+ // 驾意险
|
|
|
+ this.fcProductList = new ArrayList<>();
|
|
|
+ this.cjcSaleInfoDto = null;
|
|
|
+ this.fCsaleinfoDto = null;
|
|
|
+ this.businessType = "Proposal";
|
|
|
+ this.optType = "N";
|
|
|
+ this.personInd = "C";
|
|
|
+ this.productType = "1";
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfMainDtoDTO {
|
|
|
+ @JsonProperty("renewalNo")
|
|
|
+ private String renewalNo;
|
|
|
+ @JsonProperty("carIdRenewalFlag")
|
|
|
+ private String carIdRenewalFlag;
|
|
|
+ @JsonProperty("policySort")
|
|
|
+ private String policySort;
|
|
|
+ @JsonProperty("agreementNo")
|
|
|
+ private String agreementNo;
|
|
|
+ @JsonProperty("departmentCode")
|
|
|
+ private String departmentCode;
|
|
|
+ @JsonProperty("departmentName")
|
|
|
+ private String departmentName;
|
|
|
+ @JsonProperty("outerSubCompanyCode")
|
|
|
+ private String outerSubCompanyCode;
|
|
|
+ @JsonProperty("outerSubCompanyName")
|
|
|
+ private String outerSubCompanyName;
|
|
|
+ @JsonProperty("teamManager")
|
|
|
+ private String teamManager;
|
|
|
+ @JsonProperty("teamManagerName")
|
|
|
+ private String teamManagerName;
|
|
|
+ @JsonProperty("salesmanCode")
|
|
|
+ private String salesmanCode;
|
|
|
+ @JsonProperty("salesmanName")
|
|
|
+ private String salesmanName;
|
|
|
+ @JsonProperty("companyCode")
|
|
|
+ private String companyCode;
|
|
|
+ @JsonProperty("companyName")
|
|
|
+ private String companyName;
|
|
|
+ @JsonProperty("businessMode")
|
|
|
+ private String businessMode;
|
|
|
+ @JsonProperty("channelTip")
|
|
|
+ private String channelTip;
|
|
|
+ @JsonProperty("channelTipName")
|
|
|
+ private String channelTipName;
|
|
|
+ @JsonProperty("channelDetailCode")
|
|
|
+ private String channelDetailCode;
|
|
|
+ @JsonProperty("channelDetailName")
|
|
|
+ private String channelDetailName;
|
|
|
+ @JsonProperty("cooperateSiteCode")
|
|
|
+ private String cooperateSiteCode;
|
|
|
+ @JsonProperty("cooperateSiteName")
|
|
|
+ private String cooperateSiteName;
|
|
|
+ @JsonProperty("priInd")
|
|
|
+ private String priInd;
|
|
|
+ @JsonProperty("solutionCode")
|
|
|
+ private String solutionCode;
|
|
|
+ @JsonProperty("intermediaryCode")
|
|
|
+ private String intermediaryCode;
|
|
|
+ @JsonProperty("intermediaryCName")
|
|
|
+ private String intermediaryCName;
|
|
|
+ @JsonProperty("salesmanRegisterNo")
|
|
|
+ private String salesmanRegisterNo;
|
|
|
+ @JsonProperty("outerCompanyCode")
|
|
|
+ private String outerCompanyCode;
|
|
|
+ @JsonProperty("outerCompanyName")
|
|
|
+ private String outerCompanyName;
|
|
|
+ @JsonProperty("outerUserCode")
|
|
|
+ private String outerUserCode;
|
|
|
+ @JsonProperty("outerUserCName")
|
|
|
+ private String outerUserCName;
|
|
|
+ @JsonProperty("pioneerCode")
|
|
|
+ private String pioneerCode;
|
|
|
+ @JsonProperty("pioneerName")
|
|
|
+ private String pioneerName;
|
|
|
+ @JsonProperty("interSalesmanCode")
|
|
|
+ private String interSalesmanCode;
|
|
|
+ @JsonProperty("interSalesmanName")
|
|
|
+ private String interSalesmanName;
|
|
|
+ @JsonProperty("interSalesmanRegisterNo")
|
|
|
+ private String interSalesmanRegisterNo;
|
|
|
+ @JsonProperty("governmentType")
|
|
|
+ private String governmentType;
|
|
|
+ @JsonProperty("itemAddress")
|
|
|
+ private String itemAddress;
|
|
|
+ @JsonProperty("agreementTypeName")
|
|
|
+ private String agreementTypeName;
|
|
|
+ @JsonProperty("lables")
|
|
|
+ private String lables;
|
|
|
+ @JsonProperty("agreementCode")
|
|
|
+ private String agreementCode;
|
|
|
+ @JsonProperty("source")
|
|
|
+ private String source;
|
|
|
+ @JsonProperty("producerName")
|
|
|
+ private String producerName;
|
|
|
+ @JsonProperty("intermediaryCNName")
|
|
|
+ private String intermediaryCNName;
|
|
|
+ @JsonProperty("frontingCompany")
|
|
|
+ private String frontingCompany;
|
|
|
+ @JsonProperty("frontingCompanyName")
|
|
|
+ private String frontingCompanyName;
|
|
|
+ @JsonProperty("hengSangInd")
|
|
|
+ private String hengSangInd;
|
|
|
+ @JsonProperty("channelSortName")
|
|
|
+ private String channelSortName;
|
|
|
+ @JsonProperty("sourceId")
|
|
|
+ private String sourceId;
|
|
|
+ @JsonProperty("channelSort")
|
|
|
+ private String channelSort;
|
|
|
+ @JsonProperty("disabled")
|
|
|
+ private boolean disabled;
|
|
|
+ @JsonProperty("governmentServiceType")
|
|
|
+ private String governmentServiceType;
|
|
|
+ @JsonProperty("businessSource")
|
|
|
+ private String businessSource;
|
|
|
+ @JsonProperty("governmentProvince")
|
|
|
+ private String governmentProvince;
|
|
|
+ @JsonProperty("governmentCity")
|
|
|
+ private String governmentCity;
|
|
|
+ @JsonProperty("governmentCounty")
|
|
|
+ private String governmentCounty;
|
|
|
+ @JsonProperty("governmentProvinceName")
|
|
|
+ private String governmentProvinceName;
|
|
|
+ @JsonProperty("governmentCityName")
|
|
|
+ private String governmentCityName;
|
|
|
+ @JsonProperty("governmentCountyName")
|
|
|
+ private String governmentCountyName;
|
|
|
+ @JsonProperty("creditPeriod")
|
|
|
+ private String creditPeriod;
|
|
|
+ @JsonProperty("teamName")
|
|
|
+ private String teamName;
|
|
|
+ @JsonProperty("registerNo")
|
|
|
+ private String registerNo;
|
|
|
+ @JsonProperty("taxRegistryNumber")
|
|
|
+ private String taxRegistryNumber;
|
|
|
+ @JsonProperty("value")
|
|
|
+ private String value;
|
|
|
+ @JsonProperty("label")
|
|
|
+ private String label;
|
|
|
+ @JsonProperty("modelNo")
|
|
|
+ private String modelNo;
|
|
|
+ @JsonProperty("query")
|
|
|
+ private String query;
|
|
|
+ @JsonProperty("applySerialNo")
|
|
|
+ private Integer applySerialNo;
|
|
|
+ @JsonProperty("bankBranchName")
|
|
|
+ private String bankBranchName;
|
|
|
+ @JsonProperty("applyNo")
|
|
|
+ private String applyNo;
|
|
|
+ @JsonProperty("queryApplyNo")
|
|
|
+ private String queryApplyNo;
|
|
|
+ @JsonProperty("zlbWindowNo")
|
|
|
+ private String zlbWindowNo;
|
|
|
+ @JsonProperty("optBtn")
|
|
|
+ private String optBtn;
|
|
|
+ @JsonProperty("applyName")
|
|
|
+ private String applyName;
|
|
|
+ @JsonProperty("decisionMakingUnit")
|
|
|
+ private String decisionMakingUnit;
|
|
|
+ @JsonProperty("dsMakingTypeDetail")
|
|
|
+ private String dsMakingTypeDetail;
|
|
|
+ @JsonProperty("compLevel")
|
|
|
+ private String compLevel;
|
|
|
+ @JsonProperty("serialNo")
|
|
|
+ private String serialNo;
|
|
|
+ @JsonProperty("outOrderNo")
|
|
|
+ private String outOrderNo;
|
|
|
+ @JsonProperty("bankCustomerManagerCode")
|
|
|
+ private String bankCustomerManagerCode;
|
|
|
+ @JsonProperty("newCarFlag")
|
|
|
+ private String newCarFlag;
|
|
|
+ @JsonProperty("doubleProtectFlag")
|
|
|
+ private String doubleProtectFlag;
|
|
|
+ @JsonProperty("oano")
|
|
|
+ private String oano;
|
|
|
+ @JsonProperty("poaSerialNo")
|
|
|
+ private String poaSerialNo;
|
|
|
+ @JsonProperty("isDangerBz")
|
|
|
+ private Object isDangerBz;
|
|
|
+ @JsonProperty("tpFeeFlag")
|
|
|
+ private String tpFeeFlag;
|
|
|
+ @JsonProperty("feeServiceLinkage")
|
|
|
+ private String feeServiceLinkage;
|
|
|
+ @JsonProperty("argueSolution")
|
|
|
+ private String argueSolution;
|
|
|
+ @JsonProperty("arbitoryName")
|
|
|
+ private Object arbitoryName;
|
|
|
+ @JsonProperty("quotationPlanFlag")
|
|
|
+ private String quotationPlanFlag;
|
|
|
+ @JsonProperty("isSpecialCarFlag")
|
|
|
+ private String isSpecialCarFlag;
|
|
|
+ @JsonProperty("carIdSplitFlag")
|
|
|
+ private String carIdSplitFlag;
|
|
|
+ @JsonProperty("appId")
|
|
|
+ private String appId;
|
|
|
+ @JsonProperty("touchId")
|
|
|
+ private String touchId;
|
|
|
+ @JsonProperty("premiumTrialFlag")
|
|
|
+ private String premiumTrialFlag;
|
|
|
+ @JsonProperty("bankBranchCode")
|
|
|
+ private String bankBranchCode;
|
|
|
+ @JsonProperty("differentProtectFlag")
|
|
|
+ private String differentProtectFlag;
|
|
|
+ @JsonProperty("telKetConfSwitch")
|
|
|
+ private String telKetConfSwitch;
|
|
|
+
|
|
|
+ public PfMainDtoDTO(TaiPingCrawlerFindByProductCodeResponse.Record record, TaipingCrawlerConfigureParameters parameters,
|
|
|
+ TaiPingCrawlerFindSolutionCodeData.RecordsDTO taiPingCrawlerFindSolutionCodeData,
|
|
|
+ TaiPingCrawlerFindApplyNoResponse.GsApplyInfoMainDto gsApplyInfoMainDto, QuoteVo quoteVo) {
|
|
|
+ this.renewalNo = "";
|
|
|
+ this.carIdRenewalFlag = "";
|
|
|
+ this.intermediaryCode = record.getIntermediaryCode();
|
|
|
+ this.businessSource = record.getBusinessSource();
|
|
|
+ this.channelTip = record.getChannelTip();
|
|
|
+ this.solutionCode = parameters.getSolutionCode();
|
|
|
+ this.channelDetailCode = record.getChannelSort();
|
|
|
+ this.teamManager = parameters.getSalesmanCode();
|
|
|
+ this.teamManagerName = "";
|
|
|
+ this.businessMode = "2";
|
|
|
+ this.agreementNo = parameters.getAgreementNo();
|
|
|
+ this.companyCode = parameters.getCompanyCode();
|
|
|
+ this.companyName = record.getCompanyName();
|
|
|
+ this.salesmanCode = parameters.getSalesmanCode();
|
|
|
+ this.salesmanName = taiPingCrawlerFindSolutionCodeData.getSalesmanName();
|
|
|
+ this.outerUserCode = "";
|
|
|
+ this.outerUserCName = "";
|
|
|
+ this.interSalesmanCode = parameters.getInterSalesmanCode();
|
|
|
+ this.interSalesmanName = parameters.getInterSalesmanRegisterNo();
|
|
|
+ this.salesmanRegisterNo = parameters.getSalesmanRegisterNo();
|
|
|
+ this.interSalesmanRegisterNo = parameters.getInterSalesmanRegisterNo();
|
|
|
+ this.cooperateSiteCode = taiPingCrawlerFindSolutionCodeData.getCooperateSiteCode();
|
|
|
+ this.cooperateSiteName = taiPingCrawlerFindSolutionCodeData.getCooperateSiteName();
|
|
|
+ this.priInd = "3";
|
|
|
+ this.outerCompanyCode = null;
|
|
|
+ this.outerCompanyName = null;
|
|
|
+ this.pioneerCode = "";
|
|
|
+ this.pioneerName = "";
|
|
|
+ this.outerSubCompanyCode = "";
|
|
|
+ this.outerSubCompanyName = "";
|
|
|
+ this.departmentCode = "";
|
|
|
+ this.departmentName = "";
|
|
|
+ this.governmentType = "";
|
|
|
+ this.itemAddress = "";
|
|
|
+ this.governmentServiceType = "";
|
|
|
+ this.agreementTypeName = record.getAgreementTypeName();
|
|
|
+ this.lables = record.getLables();
|
|
|
+ this.agreementCode = record.getAgreementCode();
|
|
|
+ this.source = record.getSource();
|
|
|
+ this.producerName = record.getProducerName();
|
|
|
+ this.intermediaryCNName = record.getIntermediaryCNName();
|
|
|
+ this.frontingCompany = null;
|
|
|
+ this.frontingCompanyName = null;
|
|
|
+ this.hengSangInd = record.getHengSangInd();
|
|
|
+ this.channelSortName = record.getChannelSortName();
|
|
|
+ this.channelTipName = record.getChannelTipName();
|
|
|
+ this.sourceId = record.getSourceId();
|
|
|
+ this.channelSort = record.getChannelSort();
|
|
|
+ this.disabled = false;
|
|
|
+ this.governmentProvince = "";
|
|
|
+ this.governmentCity = "";
|
|
|
+ this.governmentCounty = "";
|
|
|
+ this.governmentProvinceName = "";
|
|
|
+ this.governmentCityName = "";
|
|
|
+ this.governmentCountyName = "";
|
|
|
+ this.creditPeriod = taiPingCrawlerFindSolutionCodeData.getCreditPeriod();
|
|
|
+ this.teamName = taiPingCrawlerFindSolutionCodeData.getTeamName();
|
|
|
+ this.registerNo = taiPingCrawlerFindSolutionCodeData.getRegisterNo();
|
|
|
+ this.taxRegistryNumber = taiPingCrawlerFindSolutionCodeData.getTaxRegistryNumber();
|
|
|
+ this.value = taiPingCrawlerFindSolutionCodeData.getSolutionCode();
|
|
|
+ this.label = taiPingCrawlerFindSolutionCodeData.getSolutionCode() +"-" +taiPingCrawlerFindSolutionCodeData.getSalesmanName() + "-" + taiPingCrawlerFindSolutionCodeData.getCooperateSiteName();
|
|
|
+ this.modelNo = gsApplyInfoMainDto.getModelNo();
|
|
|
+ this.query = "";
|
|
|
+ this.applySerialNo = gsApplyInfoMainDto.getSerialNo();
|
|
|
+ this.bankBranchName = "";
|
|
|
+ this.applyNo = gsApplyInfoMainDto.getApplyNo();
|
|
|
+ this.queryApplyNo = "";
|
|
|
+ this.zlbWindowNo = "";
|
|
|
+ this.optBtn = "";
|
|
|
+ this.applyName = "";
|
|
|
+ this.decisionMakingUnit = "";
|
|
|
+ this.dsMakingTypeDetail = "";
|
|
|
+ this.compLevel = "0";
|
|
|
+ this.serialNo = "";
|
|
|
+ this.outOrderNo = "";
|
|
|
+ this.bankCustomerManagerCode = "";
|
|
|
+ this.bankBranchCode = "";
|
|
|
+ this.newCarFlag = "1";
|
|
|
+ if (quoteVo.getCiRiskInfoVo()!= null && quoteVo.getBiRiskInfoVo() != null) {
|
|
|
+ this.differentProtectFlag = "1";
|
|
|
+ this.doubleProtectFlag = "1";
|
|
|
+ } else {
|
|
|
+ this.doubleProtectFlag = "0";
|
|
|
+ this.differentProtectFlag = "0";
|
|
|
+ }
|
|
|
+ this.oano = "";
|
|
|
+ this.poaSerialNo = "";
|
|
|
+ this.isDangerBz = null;
|
|
|
+ this.tpFeeFlag = "0";
|
|
|
+ this.feeServiceLinkage = "0";
|
|
|
+ this.policySort = "NSP";
|
|
|
+ this.argueSolution = "1";
|
|
|
+ this.arbitoryName = null;
|
|
|
+ this.quotationPlanFlag = "0";
|
|
|
+ this.isSpecialCarFlag = "0";
|
|
|
+ this.carIdSplitFlag = "";
|
|
|
+ this.appId = "";
|
|
|
+ this.touchId = "";
|
|
|
+ this.telKetConfSwitch = "0";
|
|
|
+ this.premiumTrialFlag = "0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfVehicleOwnerDTO {
|
|
|
+ @JsonProperty("name")
|
|
|
+ private String name;
|
|
|
+ @JsonProperty("ownerNature")
|
|
|
+ private String ownerNature;
|
|
|
+ @JsonProperty("identifyType")
|
|
|
+ private String identifyType;
|
|
|
+ @JsonProperty("identifyNumber")
|
|
|
+ private String identifyNumber;
|
|
|
+ @JsonProperty("birthDate")
|
|
|
+ private String birthDate;
|
|
|
+ @JsonProperty("sex")
|
|
|
+ private String sex;
|
|
|
+ @JsonProperty("profession")
|
|
|
+ private String profession;
|
|
|
+ @JsonProperty("mobilePhone")
|
|
|
+ private String mobilePhone;
|
|
|
+ @JsonProperty("isApplicantOperator")
|
|
|
+ private String isApplicantOperator;
|
|
|
+ @JsonProperty("lifeInd")
|
|
|
+ private String lifeInd;
|
|
|
+ @JsonProperty("customerGradeLabel")
|
|
|
+ private String customerGradeLabel;
|
|
|
+ @JsonProperty("carDriveAddress")
|
|
|
+ private String carDriveAddress;
|
|
|
+ @JsonProperty("customerGroup")
|
|
|
+ private String customerGroup;
|
|
|
+ @JsonProperty("licenseNo")
|
|
|
+ private String licenseNo;
|
|
|
+ @JsonProperty("driveUseAttribute")
|
|
|
+ private String driveUseAttribute;
|
|
|
+ @JsonProperty("printBrandName")
|
|
|
+ private String printBrandName;
|
|
|
+ @JsonProperty("frameNo")
|
|
|
+ private String frameNo;
|
|
|
+ @JsonProperty("engineNo")
|
|
|
+ private String engineNo;
|
|
|
+ @JsonProperty("singeinDate")
|
|
|
+ private String singeinDate;
|
|
|
+ @JsonProperty("certificateDate")
|
|
|
+ private String certificateDate;
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+ @JsonProperty("enrollDate")
|
|
|
+ private String enrollDate;
|
|
|
+ @JsonProperty("nationality")
|
|
|
+ private String nationality;
|
|
|
+ @JsonProperty("identifyStartDate")
|
|
|
+ private String identifyStartDate;
|
|
|
+ @JsonProperty("identifyEndDate")
|
|
|
+ private String identifyEndDate;
|
|
|
+
|
|
|
+
|
|
|
+ public PfVehicleOwnerDTO(CustomerInfoVo ownersInfo, CarInfoVo carInfoVo) {
|
|
|
+ this.name = ownersInfo.getName();
|
|
|
+ this.ownerNature = "01";
|
|
|
+ this.identifyType = "01";
|
|
|
+ this.identifyNumber = ownersInfo.getIdentifyNumber();
|
|
|
+ this.birthDate = ownersInfo.getBirthday();
|
|
|
+ this.sex = ownersInfo.getGender();
|
|
|
+ this.profession = "";
|
|
|
+ this.mobilePhone = "";
|
|
|
+ this.isApplicantOperator = "1";
|
|
|
+ this.lifeInd = "";
|
|
|
+ this.customerGradeLabel = "";
|
|
|
+ this.carDriveAddress = "";
|
|
|
+ this.customerGroup = "";
|
|
|
+ this.licenseNo = carInfoVo.getLicenseNo();
|
|
|
+ if (carInfoVo.getCarNatureCode().equals("02")) {
|
|
|
+ this.driveUseAttribute = "A";
|
|
|
+ } else {
|
|
|
+ this.driveUseAttribute = "F";
|
|
|
+ }
|
|
|
+ this.printBrandName = carInfoVo.getBrandName();
|
|
|
+ this.frameNo = carInfoVo.getVinNo();
|
|
|
+ this.engineNo = carInfoVo.getEngineNo();
|
|
|
+ this.singeinDate = carInfoVo.getRegisterDate();
|
|
|
+ this.certificateDate = carInfoVo.getIssueDate();
|
|
|
+ this.address = ownersInfo.getAddr();
|
|
|
+ this.enrollDate = carInfoVo.getRegisterDate();
|
|
|
+ this.nationality = "汉";
|
|
|
+ this.identifyStartDate = ownersInfo.getIdentifyValidDate();
|
|
|
+ this.identifyEndDate = ownersInfo.getIdentifyValidEndDate();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfRelatedPartyDtoDTO {
|
|
|
+ @JsonProperty("appliName")
|
|
|
+ private String appliName;
|
|
|
+ @JsonProperty("insuredCode")
|
|
|
+ private String insuredCode;
|
|
|
+ @JsonProperty("insuredType")
|
|
|
+ private String insuredType;
|
|
|
+ @JsonProperty("identifyType")
|
|
|
+ private String identifyType;
|
|
|
+ @JsonProperty("identifyNumber")
|
|
|
+ private String identifyNumber;
|
|
|
+ @JsonProperty("longTermIdentifyCard")
|
|
|
+ private String longTermIdentifyCard;
|
|
|
+ @JsonProperty("identifyStartDate")
|
|
|
+ private String identifyStartDate;
|
|
|
+ @JsonProperty("identifyEndDate")
|
|
|
+ private String identifyEndDate;
|
|
|
+ @JsonProperty("itemAddress")
|
|
|
+ private List<String> itemAddress;
|
|
|
+ @JsonProperty("itemProvinceCode")
|
|
|
+ private String itemProvinceCode;
|
|
|
+ @JsonProperty("itemProvinceCName")
|
|
|
+ private String itemProvinceCName;
|
|
|
+ @JsonProperty("itemCityCode")
|
|
|
+ private String itemCityCode;
|
|
|
+ @JsonProperty("itemCityCName")
|
|
|
+ private String itemCityCName;
|
|
|
+ @JsonProperty("countyCode")
|
|
|
+ private String countyCode;
|
|
|
+ @JsonProperty("countyCName")
|
|
|
+ private String countyCName;
|
|
|
+ @JsonProperty("appliAddress")
|
|
|
+ private String appliAddress;
|
|
|
+ @JsonProperty("mobilePhone")
|
|
|
+ private String mobilePhone;
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+ @JsonProperty("industryCode")
|
|
|
+ private String industryCode;
|
|
|
+ @JsonProperty("contactName")
|
|
|
+ private String contactName;
|
|
|
+ @JsonProperty("contactMobile")
|
|
|
+ private String contactMobile;
|
|
|
+ @JsonProperty("contactType")
|
|
|
+ private String contactType;
|
|
|
+ @JsonProperty("occupationCode")
|
|
|
+ private String occupationCode;
|
|
|
+ @JsonProperty("countryCode")
|
|
|
+ private String countryCode;
|
|
|
+ @JsonProperty("contactIdentifyType")
|
|
|
+ private String contactIdentifyType;
|
|
|
+ @JsonProperty("contactIdentifyNumber")
|
|
|
+ private String contactIdentifyNumber;
|
|
|
+ @JsonProperty("contactSex")
|
|
|
+ private String contactSex;
|
|
|
+ @JsonProperty("contactDealType")
|
|
|
+ private String contactDealType;
|
|
|
+ @JsonProperty("appliPhoneHolderName")
|
|
|
+ private String appliPhoneHolderName;
|
|
|
+ @JsonProperty("appliPhoneHolderCertiType")
|
|
|
+ private String appliPhoneHolderCertiType;
|
|
|
+ @JsonProperty("appliPhoneHolderCertNumber")
|
|
|
+ private String appliPhoneHolderCertNumber;
|
|
|
+ @JsonProperty("leaderType")
|
|
|
+ private String leaderType;
|
|
|
+ @JsonProperty("leaderName")
|
|
|
+ private String leaderName;
|
|
|
+ @JsonProperty("leaderIdType")
|
|
|
+ private String leaderIdType;
|
|
|
+ @JsonProperty("leaderIdNo")
|
|
|
+ private String leaderIdNo;
|
|
|
+ @JsonProperty("leaderIdSDate")
|
|
|
+ private String leaderIdSDate;
|
|
|
+ @JsonProperty("leaderIdEDate")
|
|
|
+ private String leaderIdEDate;
|
|
|
+ @JsonProperty("leaderContact")
|
|
|
+ private String leaderContact;
|
|
|
+ @JsonProperty("leaderPCD")
|
|
|
+ private String leaderPCD;
|
|
|
+ @JsonProperty("leaderAddress")
|
|
|
+ private String leaderAddress;
|
|
|
+ @JsonProperty("businessScope")
|
|
|
+ private String businessScope;
|
|
|
+ @JsonProperty("businessDealerName")
|
|
|
+ private String businessDealerName;
|
|
|
+ @JsonProperty("businessDealerIdType")
|
|
|
+ private String businessDealerIdType;
|
|
|
+ @JsonProperty("businessDealerIdNumber")
|
|
|
+ private String businessDealerIdNumber;
|
|
|
+ @JsonProperty("sex")
|
|
|
+ private String sex;
|
|
|
+ @JsonProperty("birthDate")
|
|
|
+ private String birthDate;
|
|
|
+ @JsonProperty("appliAge")
|
|
|
+ private Integer appliAge;
|
|
|
+ @JsonProperty("appliCompanyAddress")
|
|
|
+ private String appliCompanyAddress;
|
|
|
+ @JsonProperty("shareHolder")
|
|
|
+ private String shareHolder;
|
|
|
+ @JsonProperty("shareHolderIdType")
|
|
|
+ private String shareHolderIdType;
|
|
|
+ @JsonProperty("shareHolderIdNo")
|
|
|
+ private String shareHolderIdNo;
|
|
|
+ @JsonProperty("shareHolderIdSDate")
|
|
|
+ private String shareHolderIdSDate;
|
|
|
+ @JsonProperty("shareHolderIdEDate")
|
|
|
+ private String shareHolderIdEDate;
|
|
|
+ @JsonProperty("actControllerType")
|
|
|
+ private String actControllerType;
|
|
|
+ @JsonProperty("actController")
|
|
|
+ private String actController;
|
|
|
+ @JsonProperty("actControllerIdType")
|
|
|
+ private String actControllerIdType;
|
|
|
+ @JsonProperty("actControllerIdNo")
|
|
|
+ private String actControllerIdNo;
|
|
|
+ @JsonProperty("actControllerSDate")
|
|
|
+ private String actControllerSDate;
|
|
|
+ @JsonProperty("actControllerEDate")
|
|
|
+ private String actControllerEDate;
|
|
|
+ @JsonProperty("companyType")
|
|
|
+ private String companyType;
|
|
|
+ @JsonProperty("nation")
|
|
|
+ private String nation;
|
|
|
+ @JsonProperty("issuer")
|
|
|
+ private String issuer;
|
|
|
+ @JsonProperty("name")
|
|
|
+ private String name;
|
|
|
+ @JsonProperty("ownerNature")
|
|
|
+ private String ownerNature;
|
|
|
+ @JsonProperty("isApplicantOperator")
|
|
|
+ private String isApplicantOperator;
|
|
|
+ @JsonProperty("clientCode")
|
|
|
+ private String clientCode;
|
|
|
+ @JsonProperty("clientCName")
|
|
|
+ private String clientCName;
|
|
|
+ @JsonProperty("clientType")
|
|
|
+ private String clientType;
|
|
|
+ @JsonProperty("cifCode")
|
|
|
+ private String cifCode;
|
|
|
+ @JsonProperty("department")
|
|
|
+ private String department;
|
|
|
+ @JsonProperty("relationWithBrach")
|
|
|
+ private String relationWithBrach;
|
|
|
+ @JsonProperty("showClientAddress")
|
|
|
+ private String showClientAddress;
|
|
|
+ @JsonProperty("addressCName")
|
|
|
+ private String addressCName;
|
|
|
+ @JsonProperty("mobile")
|
|
|
+ private String mobile;
|
|
|
+ @JsonProperty("identifyTypeName")
|
|
|
+ private String identifyTypeName;
|
|
|
+ @JsonProperty("companyCode")
|
|
|
+ private String companyCode;
|
|
|
+ @JsonProperty("departmentName")
|
|
|
+ private String departmentName;
|
|
|
+ @JsonProperty("relationWithBrachName")
|
|
|
+ private String relationWithBrachName;
|
|
|
+ @JsonProperty("riskCode")
|
|
|
+ private String riskCode;
|
|
|
+ @JsonProperty("countryName")
|
|
|
+ private String countryName;
|
|
|
+ @JsonProperty("isIntercept")
|
|
|
+ private String isIntercept;
|
|
|
+ @JsonProperty("newCustomSystemOperatorType")
|
|
|
+ private String newCustomSystemOperatorType;
|
|
|
+ @JsonProperty("operatorType")
|
|
|
+ private String operatorType;
|
|
|
+ @JsonProperty("detailAddress")
|
|
|
+ private List<Object> detailAddress;
|
|
|
+
|
|
|
+ public PfRelatedPartyDtoDTO(CustomerInfoVo policyHolderInfo) {
|
|
|
+ this.appliName = policyHolderInfo.getName();
|
|
|
+ this.insuredCode = "";
|
|
|
+ this.insuredType = "1";
|
|
|
+ this.identifyType = "01";
|
|
|
+ this.identifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
|
+ if (policyHolderInfo.getIdentifyValidEndDate().equals("9999-12-31")) {
|
|
|
+ this.longTermIdentifyCard = "1";
|
|
|
+ } else {
|
|
|
+ this.longTermIdentifyCard = "0";
|
|
|
+ }
|
|
|
+ this.identifyStartDate = policyHolderInfo.getIdentifyValidDate();
|
|
|
+ this.identifyEndDate = policyHolderInfo.getIdentifyValidEndDate();
|
|
|
+ this.itemAddress = List.of(
|
|
|
+ policyHolderInfo.getProvince(),
|
|
|
+ policyHolderInfo.getCity(),
|
|
|
+ policyHolderInfo.getCounty()
|
|
|
+ );
|
|
|
+ this.itemProvinceCode = policyHolderInfo.getProvinceCode();
|
|
|
+ this.itemProvinceCName = policyHolderInfo.getProvince();
|
|
|
+ this.itemCityCode = policyHolderInfo.getCityCode();
|
|
|
+ this.itemCityCName = policyHolderInfo.getCity();
|
|
|
+ this.countyCode = policyHolderInfo.getCountyCode();
|
|
|
+ this.countyCName = policyHolderInfo.getCounty();
|
|
|
+ this.appliAddress = policyHolderInfo.getAddr();
|
|
|
+ this.mobilePhone = policyHolderInfo.getMobile();
|
|
|
+ this.email = policyHolderInfo.getEmail();
|
|
|
+ this.industryCode = "";
|
|
|
+ this.contactName = "";
|
|
|
+ this.contactMobile = "";
|
|
|
+ this.contactType = "1";
|
|
|
+ this.occupationCode = "";
|
|
|
+ this.countryCode = "CN";
|
|
|
+ this.contactIdentifyType = "01";
|
|
|
+ this.contactIdentifyNumber = "";
|
|
|
+ this.contactSex = "";
|
|
|
+ this.contactDealType = "1";
|
|
|
+ this.appliPhoneHolderName = "";
|
|
|
+ this.appliPhoneHolderCertiType = "";
|
|
|
+ this.appliPhoneHolderCertNumber = "";
|
|
|
+ this.leaderType = "1";
|
|
|
+ this.leaderName = "";
|
|
|
+ this.leaderIdType = "01";
|
|
|
+ this.leaderIdNo = "";
|
|
|
+ this.leaderIdSDate = "";
|
|
|
+ this.leaderIdEDate = "";
|
|
|
+ this.leaderContact = "";
|
|
|
+ this.leaderPCD = "";
|
|
|
+ this.leaderAddress = "";
|
|
|
+ this.businessScope = "";
|
|
|
+ this.businessDealerName = "";
|
|
|
+ this.businessDealerIdType = "";
|
|
|
+ this.businessDealerIdNumber = "";
|
|
|
+ this.sex = policyHolderInfo.getGender();
|
|
|
+ this.birthDate = policyHolderInfo.getBirthday();
|
|
|
+ this.appliAge = policyHolderInfo.getAge();
|
|
|
+ this.appliCompanyAddress = "";
|
|
|
+ this.shareHolder = "";
|
|
|
+ this.shareHolderIdType = "";
|
|
|
+ this.shareHolderIdNo = "";
|
|
|
+ this.shareHolderIdSDate = "";
|
|
|
+ this.shareHolderIdEDate = "";
|
|
|
+ this.actControllerType = "";
|
|
|
+ this.actController = "";
|
|
|
+ this.actControllerIdType = "";
|
|
|
+ this.actControllerIdNo = "";
|
|
|
+ this.actControllerSDate = "";
|
|
|
+ this.actControllerEDate = "";
|
|
|
+ this.companyType = "";
|
|
|
+ this.nation = "汉";
|
|
|
+ this.name = "";
|
|
|
+ this.ownerNature = "";
|
|
|
+ this.isApplicantOperator = "";
|
|
|
+ this.clientCode = "";
|
|
|
+ this.clientCName = "";
|
|
|
+ this.clientType = "";
|
|
|
+ this.cifCode = "";
|
|
|
+ this.department = "";
|
|
|
+ this.relationWithBrach = "";
|
|
|
+ this.showClientAddress = "";
|
|
|
+ this.addressCName = "";
|
|
|
+ this.mobile = "";
|
|
|
+ this.identifyTypeName = "";
|
|
|
+ this.companyCode = "";
|
|
|
+ this.departmentName = "";
|
|
|
+ this.relationWithBrachName = "";
|
|
|
+ this.riskCode = "";
|
|
|
+ this.countryName = "";
|
|
|
+ this.isIntercept = "";
|
|
|
+ this.issuer = "";
|
|
|
+ this.newCustomSystemOperatorType = "";
|
|
|
+ this.operatorType = "1";
|
|
|
+ this.detailAddress = Collections.emptyList();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfItemMotorDtoDTO {
|
|
|
+ @JsonProperty("isJy")
|
|
|
+ private Boolean isJy;
|
|
|
+ @JsonProperty("val2")
|
|
|
+ private Boolean val2;
|
|
|
+ @JsonProperty("brandName")
|
|
|
+ private String brandName;
|
|
|
+ @JsonProperty("printBrandName")
|
|
|
+ private String printBrandName;
|
|
|
+ @JsonProperty("certificateDate")
|
|
|
+ private String certificateDate;
|
|
|
+ @JsonProperty("carKindCode")
|
|
|
+ private String carKindCode;
|
|
|
+ @JsonProperty("carKindCodeShow")
|
|
|
+ private String carKindCodeShow;
|
|
|
+ @JsonProperty("carKindCodeShowName")
|
|
|
+ private String carKindCodeShowName;
|
|
|
+ @JsonProperty("vehicleCategory")
|
|
|
+ private String vehicleCategory;
|
|
|
+ @JsonProperty("seatCount")
|
|
|
+ private Integer seatCount;
|
|
|
+ @JsonProperty("tonCount")
|
|
|
+ private Double tonCount;
|
|
|
+ @JsonProperty("negotiatedActualValue")
|
|
|
+ private String negotiatedActualValue;
|
|
|
+ @JsonProperty("useNatureShow")
|
|
|
+ private String useNatureShow;
|
|
|
+ @JsonProperty("attachNature")
|
|
|
+ private String attachNature;
|
|
|
+ @JsonProperty("carUseType")
|
|
|
+ private String carUseType;
|
|
|
+ @JsonProperty("carID")
|
|
|
+ private String carID;
|
|
|
+ @JsonProperty("familyName")
|
|
|
+ private String familyName;
|
|
|
+ @JsonProperty("colorCode")
|
|
|
+ private String colorCode;
|
|
|
+ @JsonProperty("ciModelCode")
|
|
|
+ private String ciModelCode;
|
|
|
+ @JsonProperty("licenseColorCode")
|
|
|
+ private String licenseColorCode;
|
|
|
+ @JsonProperty("purchasePrice")
|
|
|
+ private String purchasePrice;
|
|
|
+ @JsonProperty("carBrand")
|
|
|
+ private String carBrand;
|
|
|
+ @JsonProperty("actualValue")
|
|
|
+ private String actualValue;
|
|
|
+ @JsonProperty("localVehicleInd")
|
|
|
+ private String localVehicleInd;
|
|
|
+ @JsonProperty("completeKerbMass")
|
|
|
+ private Double completeKerbMass;
|
|
|
+ @JsonProperty("fuelType")
|
|
|
+ private String fuelType;
|
|
|
+ @JsonProperty("factory")
|
|
|
+ private String factory;
|
|
|
+ @JsonProperty("engineModel")
|
|
|
+ private String engineModel;
|
|
|
+ @JsonProperty("factoryId")
|
|
|
+ private String factoryId;
|
|
|
+ @JsonProperty("clauseType")
|
|
|
+ private String clauseType;
|
|
|
+ @JsonProperty("vehicleModelKind")
|
|
|
+ private String vehicleModelKind;
|
|
|
+ @JsonProperty("hazardType")
|
|
|
+ private String hazardType;
|
|
|
+ @JsonProperty("glassType")
|
|
|
+ private String glassType;
|
|
|
+ @JsonProperty("carName")
|
|
|
+ private String carName;
|
|
|
+ @JsonProperty("runAreaCode")
|
|
|
+ private String runAreaCode;
|
|
|
+ @JsonProperty("noticeType")
|
|
|
+ private String noticeType;
|
|
|
+ @JsonProperty("carCheckValidTime")
|
|
|
+ private String carCheckValidTime;
|
|
|
+ @JsonProperty("configModel")
|
|
|
+ private String configModel;
|
|
|
+ @JsonProperty("shVehicleCode")
|
|
|
+ private String shVehicleCode;
|
|
|
+ @JsonProperty("licenseTypeCode")
|
|
|
+ private String licenseTypeCode;
|
|
|
+ @JsonProperty("powerTypeCode")
|
|
|
+ private String powerTypeCode;
|
|
|
+ @JsonProperty("powerType")
|
|
|
+ private String powerType;
|
|
|
+ @JsonProperty("doubleProtectFlag")
|
|
|
+ private String doubleProtectFlag;
|
|
|
+ @JsonProperty("taxVehicleCategory")
|
|
|
+ private String taxVehicleCategory;
|
|
|
+ @JsonProperty("countryNature")
|
|
|
+ private String countryNature;
|
|
|
+ @JsonProperty("makeDate")
|
|
|
+ private String makeDate;
|
|
|
+ @JsonProperty("jgVehicleCheckCode")
|
|
|
+ private String jgVehicleCheckCode;
|
|
|
+ @JsonProperty("carId")
|
|
|
+ private String carId;
|
|
|
+ @JsonProperty("noLicenseNo")
|
|
|
+ private Boolean noLicenseNo;
|
|
|
+ @JsonProperty("vehicleQueryType")
|
|
|
+ private String vehicleQueryType;
|
|
|
+ @JsonProperty("runAreaName")
|
|
|
+ private String runAreaName;
|
|
|
+ @JsonProperty("sale4SFlag")
|
|
|
+ private Object sale4SFlag;
|
|
|
+ @JsonProperty("saleCompany")
|
|
|
+ private String saleCompany;
|
|
|
+ @JsonProperty("saleAreaCode")
|
|
|
+ private String saleAreaCode;
|
|
|
+ @JsonProperty("provinceEcdemicVehicleFlag")
|
|
|
+ private String provinceEcdemicVehicleFlag;
|
|
|
+ @JsonProperty("vehicleFatteryFlag")
|
|
|
+ private String vehicleFatteryFlag;
|
|
|
+ @JsonProperty("nerveCentre")
|
|
|
+ private String nerveCentre;
|
|
|
+ @JsonProperty("thirdRunRoute")
|
|
|
+ private String thirdRunRoute;
|
|
|
+ @JsonProperty("licenseNo")
|
|
|
+ private String licenseNo;
|
|
|
+ @JsonProperty("frameNo")
|
|
|
+ private String frameNo;
|
|
|
+ @JsonProperty("engineNo")
|
|
|
+ private String engineNo;
|
|
|
+ @JsonProperty("modelCode")
|
|
|
+ private String modelCode;
|
|
|
+ @JsonProperty("singeinDate")
|
|
|
+ private String singeinDate;
|
|
|
+ @JsonProperty("carNewOldFlag")
|
|
|
+ private String carNewOldFlag;
|
|
|
+ @JsonProperty("enrollDate")
|
|
|
+ private String enrollDate;
|
|
|
+ @JsonProperty("useYears")
|
|
|
+ private Integer useYears;
|
|
|
+ @JsonProperty("driveUseAttribute")
|
|
|
+ private String driveUseAttribute;
|
|
|
+ @JsonProperty("exhaustScale")
|
|
|
+ private Integer exhaustScale;
|
|
|
+ @JsonProperty("power")
|
|
|
+ private Integer power;
|
|
|
+ @JsonProperty("negotiatedActualValueType")
|
|
|
+ private String negotiatedActualValueType;
|
|
|
+ @JsonProperty("principalLicenseNo")
|
|
|
+ private String principalLicenseNo;
|
|
|
+ @JsonProperty("principalValidPolicyCount")
|
|
|
+ private String principalValidPolicyCount;
|
|
|
+ @JsonProperty("chgOwnerFlag")
|
|
|
+ private String chgOwnerFlag;
|
|
|
+ @JsonProperty("transferDate")
|
|
|
+ private String transferDate;
|
|
|
+ @JsonProperty("specialCarFlag")
|
|
|
+ private String specialCarFlag;
|
|
|
+ @JsonProperty("loanVehicleFlag")
|
|
|
+ private String loanVehicleFlag;
|
|
|
+ @JsonProperty("familyCode")
|
|
|
+ private String familyCode;
|
|
|
+ @JsonProperty("hkFlag")
|
|
|
+ private String hkFlag;
|
|
|
+ @JsonProperty("fuelTypeName")
|
|
|
+ private String fuelTypeName;
|
|
|
+ @JsonProperty("whiteListFlag")
|
|
|
+ private String whiteListFlag;
|
|
|
+ @JsonProperty("whiteListElecContactNo")
|
|
|
+ private String whiteListElecContactNo;
|
|
|
+ @JsonProperty("groupCode")
|
|
|
+ private String groupCode;
|
|
|
+ @JsonProperty("commercialCarGradeSource")
|
|
|
+ private String commercialCarGradeSource;
|
|
|
+ @JsonProperty("commercialCarGrade")
|
|
|
+ private String commercialCarGrade;
|
|
|
+ @JsonProperty("saleAreaName")
|
|
|
+ private String saleAreaName;
|
|
|
+ @JsonProperty("totalTractionMass")
|
|
|
+ private String totalTractionMass;
|
|
|
+ @JsonProperty("quoteName")
|
|
|
+ private String quoteName;
|
|
|
+ @JsonProperty("classificationOfCDW")
|
|
|
+ private String classificationOfCDW;
|
|
|
+ @JsonProperty("isSpecialCarFlag")
|
|
|
+ private String isSpecialCarFlag;
|
|
|
+ @JsonProperty("cvFlag")
|
|
|
+ private String cvFlag;
|
|
|
+ @JsonProperty("frameNoHeteroType")
|
|
|
+ private String frameNoHeteroType;
|
|
|
+ @JsonProperty("principalCHDVehicleGrade")
|
|
|
+ private String principalCHDVehicleGrade;
|
|
|
+ @JsonProperty("principalCHDTeamGrade")
|
|
|
+ private String principalCHDTeamGrade;
|
|
|
+ @JsonProperty("principalQuotationDiscount")
|
|
|
+ private String principalQuotationDiscount;
|
|
|
+ @JsonProperty("chdVehicleGrade")
|
|
|
+ private String chdVehicleGrade;
|
|
|
+ @JsonProperty("chdTeamGrade")
|
|
|
+ private String chdTeamGrade;
|
|
|
+ @JsonProperty("zjxlGrade")
|
|
|
+ private String zjxlGrade;
|
|
|
+ @JsonProperty("newEnergyFlag")
|
|
|
+ private String newEnergyFlag;
|
|
|
+ @JsonProperty("energyType")
|
|
|
+ private String energyType;
|
|
|
+ @JsonProperty("energyTypeDescribe")
|
|
|
+ private String energyTypeDescribe;
|
|
|
+ @JsonProperty("range")
|
|
|
+ private String range;
|
|
|
+ @JsonProperty("vehicleStyleUniqueId")
|
|
|
+ private String vehicleStyleUniqueId;
|
|
|
+ @JsonProperty("certificateType")
|
|
|
+ private String certificateType;
|
|
|
+ @JsonProperty("certificateNo")
|
|
|
+ private String certificateNo;
|
|
|
+ @JsonProperty("certificateReportDate")
|
|
|
+ private String certificateReportDate;
|
|
|
+ @JsonProperty("longLoadPermit")
|
|
|
+ private String longLoadPermit;
|
|
|
+ @JsonProperty("brandId")
|
|
|
+ private String brandId;
|
|
|
+ @JsonProperty("colorName")
|
|
|
+ private String colorName;
|
|
|
+ @JsonProperty("newVehicleClassCode")
|
|
|
+ private String newVehicleClassCode;
|
|
|
+ @JsonProperty("newVehicleClassName")
|
|
|
+ private String newVehicleClassName;
|
|
|
+ @JsonProperty("hfCode")
|
|
|
+ private String hfCode;
|
|
|
+ @JsonProperty("hfName")
|
|
|
+ private String hfName;
|
|
|
+ @JsonProperty("carGroupName")
|
|
|
+ private String carGroupName;
|
|
|
+ @JsonProperty("vehicleCategoryName")
|
|
|
+ private String vehicleCategoryName;
|
|
|
+ @JsonProperty("glassTypeName")
|
|
|
+ private String glassTypeName;
|
|
|
+ @JsonProperty("orderNo")
|
|
|
+ private String orderNo;
|
|
|
+ @JsonProperty("licenseColorName")
|
|
|
+ private String licenseColorName;
|
|
|
+ @JsonProperty("licenseTypeName")
|
|
|
+ private String licenseTypeName;
|
|
|
+ @JsonProperty("motorTypeName")
|
|
|
+ private String motorTypeName;
|
|
|
+ @JsonProperty("newEnergyClauseFlag")
|
|
|
+ private String newEnergyClauseFlag;
|
|
|
+ @JsonProperty("carIdRenewalFlag")
|
|
|
+ private String carIdRenewalFlag;
|
|
|
+
|
|
|
+ public PfItemMotorDtoDTO(CarInfoVo carInfoVo, TaiPingCrawlerBrandNameQueryData.ItemMotorDtoListDTO motor, String orderNo, String actualValue) {
|
|
|
+ this.isJy = false;
|
|
|
+ this.val2 = false;
|
|
|
+ this.brandName = motor.getBrandName();
|
|
|
+ this.printBrandName = motor.getPrintBrandName();
|
|
|
+ this.certificateDate = carInfoVo.getIssueDate();
|
|
|
+ this.carKindCode = motor.getCarKindCode();
|
|
|
+ if (Integer.parseInt(carInfoVo.getSeatCount()) < 6) {
|
|
|
+ this.carKindCodeShow = "11";
|
|
|
+ } else {
|
|
|
+ this.carKindCodeShow = "12";
|
|
|
+ }
|
|
|
+ this.carKindCodeShowName = motor.getCiModelClass();
|
|
|
+ this.vehicleCategory = carInfoVo.getCarTypeCode();
|
|
|
+ this.seatCount = Integer.valueOf(carInfoVo.getSeatCount());
|
|
|
+ this.tonCount = Double.valueOf(carInfoVo.getTonCount());
|
|
|
+ this.negotiatedActualValue = actualValue;
|
|
|
+ this.useNatureShow = carInfoVo.getCarNatureCode();
|
|
|
+ this.attachNature = "01";
|
|
|
+ if (carInfoVo.getCarNatureCode().equals("02")) {
|
|
|
+ this.driveUseAttribute = "A";
|
|
|
+ } else {
|
|
|
+ this.driveUseAttribute = "F";
|
|
|
+ }
|
|
|
+ this.carUseType = carInfoVo.getPropertyCode();
|
|
|
+ this.carID = motor.getCarID();
|
|
|
+ this.familyName = motor.getFamilyName();
|
|
|
+ this.colorCode = motor.getColorCode();
|
|
|
+ this.ciModelCode = motor.getCiModelCode();
|
|
|
+ this.licenseColorCode = motor.getLicenseColorCode();
|
|
|
+ this.purchasePrice = motor.getPurchasePrice();
|
|
|
+ this.carBrand = motor.getCarBrand();
|
|
|
+ this.actualValue = actualValue;
|
|
|
+ this.localVehicleInd = motor.getLocalVehicleInd();
|
|
|
+ this.completeKerbMass = motor.getCompleteKerbMass();
|
|
|
+ this.fuelType = motor.getFuelType();
|
|
|
+ this.factory = motor.getFactory();
|
|
|
+ this.engineModel = motor.getEngineModel();
|
|
|
+ this.factoryId = motor.getFactoryId();
|
|
|
+ this.clauseType = motor.getClauseType();
|
|
|
+ this.vehicleModelKind = motor.getVehicleModelKind();
|
|
|
+ this.hazardType = motor.getHazardType();
|
|
|
+ this.glassType = motor.getGlassType();
|
|
|
+ this.carName = motor.getCarName();
|
|
|
+ this.runAreaCode = motor.getRunAreaCode();
|
|
|
+ this.noticeType = motor.getNoticeType();
|
|
|
+ this.carCheckValidTime = "";
|
|
|
+ this.configModel = "";
|
|
|
+ this.shVehicleCode = "";
|
|
|
+ this.licenseTypeCode = motor.getLicenseTypeCode();
|
|
|
+ this.powerTypeCode = "";
|
|
|
+ this.powerType = "";
|
|
|
+ this.doubleProtectFlag = "";
|
|
|
+ this.taxVehicleCategory = motor.getTaxVehicleCategory();
|
|
|
+ this.countryNature = motor.getCountryNature();
|
|
|
+ this.makeDate = motor.getMakeDate();
|
|
|
+ this.jgVehicleCheckCode = motor.getJgVehicleCheckCode();
|
|
|
+ this.carId = motor.getCarID();
|
|
|
+ this.noLicenseNo = Boolean.FALSE;
|
|
|
+ this.vehicleQueryType = motor.getVehicleQueryType();
|
|
|
+ this.runAreaName = motor.getRunAreaName();
|
|
|
+ this.sale4SFlag = motor.getSale4SFlag();
|
|
|
+ this.saleCompany = motor.getSaleCompany();
|
|
|
+ this.saleAreaCode = motor.getSaleAreaCode();
|
|
|
+ this.provinceEcdemicVehicleFlag = motor.getProvinceEcdemicVehicleFlag();
|
|
|
+ this.vehicleFatteryFlag = motor.getVehicleFatteryFlag();
|
|
|
+ this.nerveCentre = motor.getNerveCentre();
|
|
|
+ this.thirdRunRoute = motor.getThirdRunRoute();
|
|
|
+ this.licenseNo = carInfoVo.getLicenseNo();
|
|
|
+ this.frameNo = carInfoVo.getVinNo();
|
|
|
+ this.engineNo = carInfoVo.getEngineNo();
|
|
|
+ this.modelCode = motor.getModelCode();
|
|
|
+ this.singeinDate = carInfoVo.getRegisterDate();
|
|
|
+ if (StringUtils.hasLength(carInfoVo.getLicenseNo())) {
|
|
|
+ this.carNewOldFlag = "1";
|
|
|
+ } else {
|
|
|
+ this.carNewOldFlag = "0";
|
|
|
+ }
|
|
|
+ this.enrollDate = carInfoVo.getRegisterDate() ;
|
|
|
+ this.useYears = getUseYears(carInfoVo.getRegisterDate());
|
|
|
+ this.exhaustScale = motor.getExhaustScale();
|
|
|
+ this.power = motor.getPower();
|
|
|
+ this.negotiatedActualValueType = motor.getNegotiatedActualValueType();
|
|
|
+ this.principalLicenseNo = motor.getPrincipalLicenseNo();
|
|
|
+ this.principalValidPolicyCount = motor.getPrincipalValidPolicyCount();
|
|
|
+ this.chgOwnerFlag = motor.getChgOwnerFlag();
|
|
|
+ this.transferDate = carInfoVo.getTransferDate();
|
|
|
+ this.specialCarFlag = motor.getSpecialCarFlag();
|
|
|
+ this.loanVehicleFlag = motor.getLoanVehicleFlag();
|
|
|
+ this.familyCode = motor.getFamilyCode();
|
|
|
+ this.hkFlag = motor.getHkFlag();
|
|
|
+ this.fuelTypeName = motor.getFuelTypeName();
|
|
|
+ this.whiteListFlag = motor.getWhiteListFlag();
|
|
|
+ this.whiteListElecContactNo = motor.getWhiteListElecContactNo();
|
|
|
+ this.groupCode = motor.getGroupCode();
|
|
|
+ this.commercialCarGradeSource = motor.getCommercialCarGradeSource();
|
|
|
+ this.commercialCarGrade = motor.getCommercialCarGrade();
|
|
|
+ this.saleAreaName = motor.getSaleAreaName();
|
|
|
+ this.totalTractionMass = motor.getTotalTractionMass();
|
|
|
+ this.quoteName = "";
|
|
|
+ this.classificationOfCDW = motor.getClassificationOfCDW();
|
|
|
+ this.isSpecialCarFlag = motor.getIsSpecialCarFlag();
|
|
|
+ this.cvFlag = motor.getCvFlag();
|
|
|
+ this.frameNoHeteroType = motor.getFrameNoHeteroType();
|
|
|
+ this.principalCHDVehicleGrade = motor.getPrincipalCHDVehicleGrade();
|
|
|
+ this.principalCHDTeamGrade = motor.getPrincipalCHDTeamGrade();
|
|
|
+ this.principalQuotationDiscount = motor.getPrincipalQuotationDiscount();
|
|
|
+ this.chdVehicleGrade = motor.getChdVehicleGrade();
|
|
|
+ this.chdTeamGrade = motor.getChdTeamGrade();
|
|
|
+ this.zjxlGrade = motor.getZjxlGrade();
|
|
|
+ if (carInfoVo.getEnergyTypeCode().equals("0")) {
|
|
|
+ this.newEnergyFlag = "0";
|
|
|
+ this.energyType = "0";
|
|
|
+ } else {
|
|
|
+ this.newEnergyFlag = "1";
|
|
|
+ this.energyType = "1";
|
|
|
+ }
|
|
|
+ this.energyTypeDescribe = motor.getEnergyTypeDescribe();
|
|
|
+ this.range = motor.getRange();
|
|
|
+ this.vehicleStyleUniqueId = motor.getVehicleStyleUniqueId();
|
|
|
+ this.certificateType = motor.getCertificateType();
|
|
|
+ this.certificateNo = motor.getCertificateNo();
|
|
|
+ this.certificateReportDate = motor.getCertificateReportDate();
|
|
|
+ this.longLoadPermit = motor.getLongLoadPermit();
|
|
|
+ this.brandId = motor.getBrandId();
|
|
|
+ this.colorName = motor.getColorName();
|
|
|
+ this.newVehicleClassCode = motor.getNewVehicleClassCode();
|
|
|
+ this.newVehicleClassName = motor.getNewVehicleClassName();
|
|
|
+ this.hfCode = motor.getHfCode();
|
|
|
+ this.hfName = motor.getHfName();
|
|
|
+ this.carGroupName = motor.getCarGroupName();
|
|
|
+ this.vehicleCategoryName = motor.getVehicleCategoryName();
|
|
|
+ this.glassTypeName = motor.getGlassTypeName();
|
|
|
+ this.orderNo = orderNo;
|
|
|
+ this.licenseColorName = motor.getLicenseColorName();
|
|
|
+ this.licenseTypeName = motor.getLicenseTypeName();
|
|
|
+ this.motorTypeName = motor.getMotorTypeName();
|
|
|
+ this.newEnergyClauseFlag = motor.getNewEnergyClauseFlag();
|
|
|
+ this.carIdRenewalFlag = "";
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getUseYears(String registerDate) {
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
+ LocalDate startDate = LocalDate.parse(registerDate, formatter);
|
|
|
+ LocalDate endDate = LocalDate.now().plusDays(1);
|
|
|
+ // 总天数
|
|
|
+ long days = java.time.temporal.ChronoUnit.DAYS.between(startDate, endDate);
|
|
|
+ // 除以365 取整
|
|
|
+ return (int) (days / 365);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfRiskRelatedPartyDtoDTO {
|
|
|
+ @JsonProperty("insuredName")
|
|
|
+ private String insuredName;
|
|
|
+ @JsonProperty("insuredCode")
|
|
|
+ private String insuredCode;
|
|
|
+ @JsonProperty("insuredType")
|
|
|
+ private String insuredType;
|
|
|
+ @JsonProperty("identifyType")
|
|
|
+ private String identifyType;
|
|
|
+ @JsonProperty("identifyNumber")
|
|
|
+ private String identifyNumber;
|
|
|
+ @JsonProperty("longTermIdentifyCard")
|
|
|
+ private String longTermIdentifyCard;
|
|
|
+ @JsonProperty("identifyStartDate")
|
|
|
+ private String identifyStartDate;
|
|
|
+ @JsonProperty("identifyEndDate")
|
|
|
+ private String identifyEndDate;
|
|
|
+ @JsonProperty("itemAddress")
|
|
|
+ private List<String> itemAddress;
|
|
|
+ @JsonProperty("itemProvinceCode")
|
|
|
+ private String itemProvinceCode;
|
|
|
+ @JsonProperty("itemProvinceCName")
|
|
|
+ private String itemProvinceCName;
|
|
|
+ @JsonProperty("itemCityCode")
|
|
|
+ private String itemCityCode;
|
|
|
+ @JsonProperty("itemCityCName")
|
|
|
+ private String itemCityCName;
|
|
|
+ @JsonProperty("countyCode")
|
|
|
+ private String countyCode;
|
|
|
+ @JsonProperty("countyCName")
|
|
|
+ private String countyCName;
|
|
|
+ @JsonProperty("insuredAddress")
|
|
|
+ private String insuredAddress;
|
|
|
+ @JsonProperty("insuredMobilePhone")
|
|
|
+ private String insuredMobilePhone;
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+ @JsonProperty("contactName")
|
|
|
+ private String contactName;
|
|
|
+ @JsonProperty("contactMobile")
|
|
|
+ private String contactMobile;
|
|
|
+ @JsonProperty("contactType")
|
|
|
+ private String contactType;
|
|
|
+ @JsonProperty("occupationCode")
|
|
|
+ private String occupationCode;
|
|
|
+ @JsonProperty("contactIdentifyType")
|
|
|
+ private String contactIdentifyType;
|
|
|
+ @JsonProperty("contactIdentifyNumber")
|
|
|
+ private String contactIdentifyNumber;
|
|
|
+ @JsonProperty("insuredPhoneHolderName")
|
|
|
+ private String insuredPhoneHolderName;
|
|
|
+ @JsonProperty("insuredPhoneHolderCertiType")
|
|
|
+ private String insuredPhoneHolderCertiType;
|
|
|
+ @JsonProperty("insuredPhoneHolderCertNumber")
|
|
|
+ private String insuredPhoneHolderCertNumber;
|
|
|
+ @JsonProperty("leaderType")
|
|
|
+ private String leaderType;
|
|
|
+ @JsonProperty("subLeaderName")
|
|
|
+ private String subLeaderName;
|
|
|
+ @JsonProperty("leaderIdType")
|
|
|
+ private String leaderIdType;
|
|
|
+ @JsonProperty("leaderIdNo")
|
|
|
+ private String leaderIdNo;
|
|
|
+ @JsonProperty("leaderIdSDate")
|
|
|
+ private String leaderIdSDate;
|
|
|
+ @JsonProperty("leaderIdEDate")
|
|
|
+ private String leaderIdEDate;
|
|
|
+ @JsonProperty("subLeaderConactMobile")
|
|
|
+ private String subLeaderConactMobile;
|
|
|
+ @JsonProperty("businessScope")
|
|
|
+ private String businessScope;
|
|
|
+ @JsonProperty("leaderPCD")
|
|
|
+ private String leaderPCD;
|
|
|
+ @JsonProperty("subLeaderAddress")
|
|
|
+ private String subLeaderAddress;
|
|
|
+ @JsonProperty("insuredSex")
|
|
|
+ private String insuredSex;
|
|
|
+ @JsonProperty("insuredBirthDate")
|
|
|
+ private String insuredBirthDate;
|
|
|
+ @JsonProperty("insuredAge")
|
|
|
+ private Integer insuredAge;
|
|
|
+ @JsonProperty("insuredCompanyAddress")
|
|
|
+ private String insuredCompanyAddress;
|
|
|
+ @JsonProperty("countryCode")
|
|
|
+ private String countryCode;
|
|
|
+ @JsonProperty("companyType")
|
|
|
+ private String companyType;
|
|
|
+ @JsonProperty("companyEstablishDate")
|
|
|
+ private String companyEstablishDate;
|
|
|
+ @JsonProperty("nation")
|
|
|
+ private String nation;
|
|
|
+ @JsonProperty("issuer")
|
|
|
+ private String issuer;
|
|
|
+ @JsonProperty("businessDealerName")
|
|
|
+ private String businessDealerName;
|
|
|
+ @JsonProperty("businessDealerIdType")
|
|
|
+ private String businessDealerIdType;
|
|
|
+ @JsonProperty("businessDealerIdNumber")
|
|
|
+ private String businessDealerIdNumber;
|
|
|
+ @JsonProperty("shareHolder")
|
|
|
+ private String shareHolder;
|
|
|
+ @JsonProperty("shareHolderIdType")
|
|
|
+ private String shareHolderIdType;
|
|
|
+ @JsonProperty("shareHolderIdNo")
|
|
|
+ private String shareHolderIdNo;
|
|
|
+ @JsonProperty("shareHolderIdSDate")
|
|
|
+ private String shareHolderIdSDate;
|
|
|
+ @JsonProperty("shareHolderIdEDate")
|
|
|
+ private String shareHolderIdEDate;
|
|
|
+ @JsonProperty("actControllerType")
|
|
|
+ private String actControllerType;
|
|
|
+ @JsonProperty("actController")
|
|
|
+ private String actController;
|
|
|
+ @JsonProperty("actControllerIdType")
|
|
|
+ private String actControllerIdType;
|
|
|
+ @JsonProperty("actControllerIdNo")
|
|
|
+ private String actControllerIdNo;
|
|
|
+ @JsonProperty("actControllerSDate")
|
|
|
+ private String actControllerSDate;
|
|
|
+ @JsonProperty("actControllerEDate")
|
|
|
+ private String actControllerEDate;
|
|
|
+ @JsonProperty("appliName")
|
|
|
+ private String appliName;
|
|
|
+ @JsonProperty("appliAddress")
|
|
|
+ private String appliAddress;
|
|
|
+ @JsonProperty("mobilePhone")
|
|
|
+ private String mobilePhone;
|
|
|
+ @JsonProperty("industryCode")
|
|
|
+ private String industryCode;
|
|
|
+ @JsonProperty("contactSex")
|
|
|
+ private String contactSex;
|
|
|
+ @JsonProperty("contactDealType")
|
|
|
+ private String contactDealType;
|
|
|
+ @JsonProperty("appliPhoneHolderName")
|
|
|
+ private String appliPhoneHolderName;
|
|
|
+ @JsonProperty("appliPhoneHolderCertiType")
|
|
|
+ private String appliPhoneHolderCertiType;
|
|
|
+ @JsonProperty("appliPhoneHolderCertNumber")
|
|
|
+ private String appliPhoneHolderCertNumber;
|
|
|
+ @JsonProperty("leaderName")
|
|
|
+ private String leaderName;
|
|
|
+ @JsonProperty("leaderContact")
|
|
|
+ private String leaderContact;
|
|
|
+ @JsonProperty("leaderAddress")
|
|
|
+ private String leaderAddress;
|
|
|
+ @JsonProperty("sex")
|
|
|
+ private String sex;
|
|
|
+ @JsonProperty("birthDate")
|
|
|
+ private String birthDate;
|
|
|
+ @JsonProperty("appliAge")
|
|
|
+ private Integer appliAge;
|
|
|
+ @JsonProperty("appliCompanyAddress")
|
|
|
+ private String appliCompanyAddress;
|
|
|
+ @JsonProperty("ownerNature")
|
|
|
+ private String ownerNature;
|
|
|
+ @JsonProperty("isApplicantOperator")
|
|
|
+ private String isApplicantOperator;
|
|
|
+ @JsonProperty("clientCode")
|
|
|
+ private String clientCode;
|
|
|
+ @JsonProperty("clientCName")
|
|
|
+ private String clientCName;
|
|
|
+ @JsonProperty("clientType")
|
|
|
+ private String clientType;
|
|
|
+ @JsonProperty("cifCode")
|
|
|
+ private String cifCode;
|
|
|
+ @JsonProperty("department")
|
|
|
+ private String department;
|
|
|
+ @JsonProperty("relationWithBrach")
|
|
|
+ private String relationWithBrach;
|
|
|
+ @JsonProperty("showClientAddress")
|
|
|
+ private String showClientAddress;
|
|
|
+ @JsonProperty("addressCName")
|
|
|
+ private String addressCName;
|
|
|
+ @JsonProperty("mobile")
|
|
|
+ private String mobile;
|
|
|
+ @JsonProperty("identifyTypeName")
|
|
|
+ private String identifyTypeName;
|
|
|
+ @JsonProperty("companyCode")
|
|
|
+ private String companyCode;
|
|
|
+ @JsonProperty("departmentName")
|
|
|
+ private String departmentName;
|
|
|
+ @JsonProperty("relationWithBrachName")
|
|
|
+ private String relationWithBrachName;
|
|
|
+ @JsonProperty("riskCode")
|
|
|
+ private String riskCode;
|
|
|
+ @JsonProperty("countryName")
|
|
|
+ private String countryName;
|
|
|
+ @JsonProperty("isIntercept")
|
|
|
+ private String isIntercept;
|
|
|
+ @JsonProperty("newCustomSystemOperatorType")
|
|
|
+ private String newCustomSystemOperatorType;
|
|
|
+ @JsonProperty("detailAddress")
|
|
|
+ private List<Object> detailAddress;
|
|
|
+
|
|
|
+ public PfRiskRelatedPartyDtoDTO(CustomerInfoVo insuredPersonInfo) {
|
|
|
+ this.insuredName = insuredPersonInfo.getName();
|
|
|
+ this.insuredCode = "";
|
|
|
+ this.insuredType = "1";
|
|
|
+ this.identifyType = "01";
|
|
|
+ this.identifyNumber = insuredPersonInfo.getIdentifyNumber();
|
|
|
+ if (insuredPersonInfo.getIdentifyValidEndDate().equals("9999-12-31")) {
|
|
|
+ this.longTermIdentifyCard = "1";
|
|
|
+ } else {
|
|
|
+ this.longTermIdentifyCard = "0";
|
|
|
+ }
|
|
|
+ this.identifyStartDate = insuredPersonInfo.getIdentifyValidDate();
|
|
|
+ this.identifyEndDate = insuredPersonInfo.getIdentifyValidEndDate();
|
|
|
+ this.itemAddress = List.of(
|
|
|
+ insuredPersonInfo.getProvince(),
|
|
|
+ insuredPersonInfo.getCity(),
|
|
|
+ insuredPersonInfo.getCounty()
|
|
|
+ );
|
|
|
+ this.itemProvinceCode = insuredPersonInfo.getProvinceCode();
|
|
|
+ this.itemProvinceCName = insuredPersonInfo.getProvince();
|
|
|
+ this.itemCityCode = insuredPersonInfo.getCityCode();
|
|
|
+ this.itemCityCName = insuredPersonInfo.getCity();
|
|
|
+ this.countyCode = insuredPersonInfo.getCountyCode();
|
|
|
+ this.countyCName = insuredPersonInfo.getCounty();
|
|
|
+ this.insuredAddress = insuredPersonInfo.getAddr();
|
|
|
+ this.insuredMobilePhone = insuredPersonInfo.getMobile();
|
|
|
+ this.email = insuredPersonInfo.getEmail();
|
|
|
+ this.contactName = "";
|
|
|
+ this.contactMobile = "";
|
|
|
+ this.contactType = "1";
|
|
|
+ this.occupationCode = "";
|
|
|
+ this.contactIdentifyType = "01";
|
|
|
+ this.contactIdentifyNumber = "";
|
|
|
+ this.insuredPhoneHolderName = "";
|
|
|
+ this.insuredPhoneHolderCertiType = "";
|
|
|
+ this.insuredPhoneHolderCertNumber = "";
|
|
|
+ this.leaderType = "1";
|
|
|
+ this.subLeaderName = "";
|
|
|
+ this.leaderIdType = "01";
|
|
|
+ this.leaderIdNo = "";
|
|
|
+ this.leaderIdSDate = "";
|
|
|
+ this.leaderIdEDate = "";
|
|
|
+ this.subLeaderConactMobile = "";
|
|
|
+ this.businessScope = "";
|
|
|
+ this.leaderPCD = "";
|
|
|
+ this.subLeaderAddress = "";
|
|
|
+ this.insuredSex = "";
|
|
|
+ this.insuredBirthDate = insuredPersonInfo.getBirthday();
|
|
|
+ this.insuredAge = insuredPersonInfo.getAge();
|
|
|
+ this.insuredCompanyAddress = "";
|
|
|
+ this.countryCode = "CN";
|
|
|
+ this.companyType = "";
|
|
|
+ this.companyEstablishDate = "";
|
|
|
+ this.nation = "汉";
|
|
|
+ this.issuer = "";
|
|
|
+ this.businessDealerName = "";
|
|
|
+ this.businessDealerIdType = "";
|
|
|
+ this.businessDealerIdNumber = "";
|
|
|
+ this.shareHolder = "";
|
|
|
+ this.shareHolderIdType = "";
|
|
|
+ this.shareHolderIdNo = "";
|
|
|
+ this.shareHolderIdSDate = "";
|
|
|
+ this.shareHolderIdEDate = "";
|
|
|
+ this.actControllerType = "1";
|
|
|
+ this.actController = "";
|
|
|
+ this.actControllerIdType = "";
|
|
|
+ this.actControllerIdNo = "";
|
|
|
+ this.actControllerSDate = "";
|
|
|
+ this.actControllerEDate = "";
|
|
|
+ this.appliName = insuredPersonInfo.getName();
|
|
|
+ this.appliAddress = insuredPersonInfo.getAddr();
|
|
|
+ this.mobilePhone = insuredPersonInfo.getMobile();
|
|
|
+ this.industryCode = "";
|
|
|
+ this.contactSex = "";
|
|
|
+ this.contactDealType = "1";
|
|
|
+ this.appliPhoneHolderName = "";
|
|
|
+ this.appliPhoneHolderCertiType = "";
|
|
|
+ this.appliPhoneHolderCertNumber = "";
|
|
|
+ this.leaderName = "";
|
|
|
+ this.leaderContact = "";
|
|
|
+ this.leaderAddress = "";
|
|
|
+ this.sex = insuredPersonInfo.getGender();
|
|
|
+ this.birthDate = insuredPersonInfo.getBirthday();
|
|
|
+ this.appliAge = insuredPersonInfo.getAge();
|
|
|
+ this.appliCompanyAddress = "";
|
|
|
+ this.ownerNature = "";
|
|
|
+ this.isApplicantOperator = "";
|
|
|
+ this.clientCode = "";
|
|
|
+ this.clientCName = "";
|
|
|
+ this.clientType = "";
|
|
|
+ this.cifCode = "";
|
|
|
+ this.department = "";
|
|
|
+ this.relationWithBrach = "";
|
|
|
+ this.showClientAddress = "";
|
|
|
+ this.addressCName = addressCName;
|
|
|
+ this.mobile = insuredPersonInfo.getMobile();
|
|
|
+ this.identifyTypeName = "";
|
|
|
+ this.companyCode = "";
|
|
|
+ this.departmentName = "";
|
|
|
+ this.relationWithBrachName = "";
|
|
|
+ this.riskCode = "";
|
|
|
+ this.countryName = "";
|
|
|
+ this.isIntercept = "";
|
|
|
+ this.newCustomSystemOperatorType = "";
|
|
|
+ this.detailAddress = Collections.emptyList();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfProposalCarShipTaxDtoDTO {
|
|
|
+
|
|
|
+ @JsonProperty("taxpayerIdentifier")
|
|
|
+ private String taxpayerIdentifier;
|
|
|
+ @JsonProperty("taxRelifFlag")
|
|
|
+ private String taxRelifFlag;
|
|
|
+ @JsonProperty("fuelType")
|
|
|
+ private String fuelType;
|
|
|
+ @JsonProperty("taxItemDetailCode")
|
|
|
+ private String taxItemDetailCode;
|
|
|
+ @JsonProperty("taxItemDetailName")
|
|
|
+ private String taxItemDetailName;
|
|
|
+ @JsonProperty("calculateMode")
|
|
|
+ private String calculateMode;
|
|
|
+ @JsonProperty("taxDueActual")
|
|
|
+ private Integer taxDueActual;
|
|
|
+ @JsonProperty("refundTaxDue")
|
|
|
+ private String refundTaxDue;
|
|
|
+ @JsonProperty("sumRefundTax")
|
|
|
+ private String sumRefundTax;
|
|
|
+ @JsonProperty("calcTaxFlag")
|
|
|
+ private String calcTaxFlag;
|
|
|
+ @JsonProperty("taxPaymentMark")
|
|
|
+ private String taxPaymentMark;
|
|
|
+ @JsonProperty("previousPay")
|
|
|
+ private Integer previousPay;
|
|
|
+ @JsonProperty("lateFee")
|
|
|
+ private Integer lateFee;
|
|
|
+ @JsonProperty("taxPayerName")
|
|
|
+ private String taxPayerName;
|
|
|
+ @JsonProperty("identifyType")
|
|
|
+ private String identifyType;
|
|
|
+ @JsonProperty("identifyNumber")
|
|
|
+ private String identifyNumber;
|
|
|
+ @JsonProperty("paidFreeCertificate")
|
|
|
+ private String paidFreeCertificate;
|
|
|
+ @JsonProperty("taxDocumentDate")
|
|
|
+ private String taxDocumentDate;
|
|
|
+ @JsonProperty("taxPaidAreaCode")
|
|
|
+ private String taxPaidAreaCode;
|
|
|
+ @JsonProperty("relifReason")
|
|
|
+ private String relifReason;
|
|
|
+ @JsonProperty("freeRate")
|
|
|
+ private Integer freeRate;
|
|
|
+ @JsonProperty("deductionDueType")
|
|
|
+ private String deductionDueType;
|
|
|
+ @JsonProperty("taxRegistryNumber")
|
|
|
+ private String taxRegistryNumber;
|
|
|
+ @JsonProperty("taxCompancyCode")
|
|
|
+ private String taxCompancyCode;
|
|
|
+ @JsonProperty("taxCompancyName")
|
|
|
+ private String taxCompancyName;
|
|
|
+ @JsonProperty("carFindDate")
|
|
|
+ private String carFindDate;
|
|
|
+ @JsonProperty("previousPayYears")
|
|
|
+ private String previousPayYears;
|
|
|
+ @JsonProperty("itemAddress")
|
|
|
+ private String itemAddress;
|
|
|
+ @JsonProperty("provinceCode")
|
|
|
+ private String provinceCode;
|
|
|
+ @JsonProperty("provinceName")
|
|
|
+ private String provinceName;
|
|
|
+ @JsonProperty("cityCode")
|
|
|
+ private String cityCode;
|
|
|
+ @JsonProperty("cityName")
|
|
|
+ private String cityName;
|
|
|
+ @JsonProperty("countyCode")
|
|
|
+ private String countyCode;
|
|
|
+ @JsonProperty("countyName")
|
|
|
+ private String countyName;
|
|
|
+ @JsonProperty("detailedAddress")
|
|
|
+ private String detailedAddress;
|
|
|
+ @JsonProperty("fuelTypeCST")
|
|
|
+ private String fuelTypeCST;
|
|
|
+ @JsonProperty("useNatureCode")
|
|
|
+ private String useNatureCode;
|
|
|
+ @JsonProperty("taxPayerPhoneNumber")
|
|
|
+ private String taxPayerPhoneNumber;
|
|
|
+ @JsonProperty("taxStartDate")
|
|
|
+ private String taxStartDate;
|
|
|
+ @JsonProperty("taxEndDate")
|
|
|
+ private String taxEndDate;
|
|
|
+ @JsonProperty("newLicenseFlag")
|
|
|
+ private String newLicenseFlag;
|
|
|
+ @JsonProperty("payLastYear")
|
|
|
+ private String payLastYear;
|
|
|
+ @JsonProperty("payLastEndDate")
|
|
|
+ private String payLastEndDate;
|
|
|
+ @JsonProperty("sumPayTax")
|
|
|
+ private Integer sumPayTax;
|
|
|
+ @JsonProperty("taxRelief")
|
|
|
+ private Integer taxRelief;
|
|
|
+ @JsonProperty("vehicleCategory")
|
|
|
+ private String vehicleCategory;
|
|
|
+ @JsonProperty("certiType")
|
|
|
+ private String certiType;
|
|
|
+
|
|
|
+ public PfProposalCarShipTaxDtoDTO(VehicleAndVesselTaxVo vehicleAndVesselTax, CarInfoVo carInfoVo) {
|
|
|
+ this.taxpayerIdentifier = vehicleAndVesselTax.getIdentifyNumber();
|
|
|
+ this.taxRelifFlag = "02";
|
|
|
+ this.fuelType = carInfoVo.getEnergyTypeCode();
|
|
|
+ if (!carInfoVo.getEnergyTypeCode().equals("0")) {
|
|
|
+ this.taxItemDetailCode = "";
|
|
|
+ this.taxItemDetailName = "";
|
|
|
+ this.calculateMode = "1";
|
|
|
+ } else {
|
|
|
+ this.taxItemDetailCode = "02";
|
|
|
+ this.taxItemDetailName = "1.6至2.0升(含)客车";
|
|
|
+ this.calculateMode = "3";
|
|
|
+ }
|
|
|
+ this.taxDueActual = 0;
|
|
|
+ this.refundTaxDue = "";
|
|
|
+ this.sumRefundTax = "";
|
|
|
+ this.calcTaxFlag = "";
|
|
|
+ this.taxPaymentMark = "";
|
|
|
+ this.previousPay = 0;
|
|
|
+ this.lateFee = 0;
|
|
|
+ this.taxPayerName = vehicleAndVesselTax.getTaxpayerName();
|
|
|
+ this.identifyType = "01";
|
|
|
+ this.identifyNumber = vehicleAndVesselTax.getIdentifyNumber();
|
|
|
+ this.paidFreeCertificate = "";
|
|
|
+ this.taxDocumentDate = "";
|
|
|
+ this.taxPaidAreaCode = "";
|
|
|
+ this.relifReason = vehicleAndVesselTax.getRelifReason();
|
|
|
+ this.freeRate = 50;
|
|
|
+ this.deductionDueType = "";
|
|
|
+ this.taxRegistryNumber = "";
|
|
|
+ this.taxCompancyCode = vehicleAndVesselTax.getTaxComCode();
|
|
|
+ this.taxCompancyName = vehicleAndVesselTax.getTaxComName();
|
|
|
+ this.carFindDate = "";
|
|
|
+ this.previousPayYears = "";
|
|
|
+ this.itemAddress = "";
|
|
|
+ this.provinceCode = "";
|
|
|
+ this.provinceName = "";
|
|
|
+ this.cityCode = "";
|
|
|
+ this.cityName = "";
|
|
|
+ this.countyCode = "";
|
|
|
+ this.countyName = "";
|
|
|
+ this.detailedAddress = "";
|
|
|
+ this.fuelTypeCST = "A";
|
|
|
+ this.useNatureCode = "200";
|
|
|
+ this.taxPayerPhoneNumber = "";
|
|
|
+ this.taxStartDate = "";
|
|
|
+ this.taxEndDate = "";
|
|
|
+ this.newLicenseFlag = "1";
|
|
|
+ this.payLastYear = "";
|
|
|
+ this.payLastEndDate = "";
|
|
|
+ this.sumPayTax = 0;
|
|
|
+ this.taxRelief = 0;
|
|
|
+ this.vehicleCategory = "K33";
|
|
|
+ this.certiType = "01";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfPolicyInfoDtoDTO {
|
|
|
+ @JsonProperty("startDate0801")
|
|
|
+ private String startDate0801;
|
|
|
+ @JsonProperty("startDate0802")
|
|
|
+ private String startDate0802;
|
|
|
+ @JsonProperty("proposalNo")
|
|
|
+ private String proposalNo;
|
|
|
+ @JsonProperty("renewalNo0801")
|
|
|
+ private String renewalNo0801;
|
|
|
+ @JsonProperty("renewalNo0802")
|
|
|
+ private String renewalNo0802;
|
|
|
+ @JsonProperty("proposalNo0801")
|
|
|
+ private String proposalNo0801;
|
|
|
+ @JsonProperty("demandNoForce")
|
|
|
+ private String demandNoForce;
|
|
|
+ @JsonProperty("immEffectStartDate0801")
|
|
|
+ private String immEffectStartDate0801;
|
|
|
+ @JsonProperty("startTime0801")
|
|
|
+ private String startTime0801;
|
|
|
+ @JsonProperty("endDate0801")
|
|
|
+ private String endDate0801;
|
|
|
+ @JsonProperty("endTime0801")
|
|
|
+ private String endTime0801;
|
|
|
+ @JsonProperty("demandNoBusi")
|
|
|
+ private String demandNoBusi;
|
|
|
+ @JsonProperty("poaSerialNo")
|
|
|
+ private String poaSerialNo;
|
|
|
+ @JsonProperty("effectFlag0801")
|
|
|
+ private Boolean effectFlag0801;
|
|
|
+ @JsonProperty("immEffectType0801")
|
|
|
+ private Object immEffectType0801;
|
|
|
+ @JsonProperty("effectFlag0802")
|
|
|
+ private Boolean effectFlag0802;
|
|
|
+ @JsonProperty("immEffectType0802")
|
|
|
+ private Object immEffectType0802;
|
|
|
+ @JsonProperty("proposalNo0802")
|
|
|
+ private String proposalNo0802;
|
|
|
+ @JsonProperty("immEffectStartDate0802")
|
|
|
+ private String immEffectStartDate0802;
|
|
|
+ @JsonProperty("startTime0802")
|
|
|
+ private String startTime0802;
|
|
|
+ @JsonProperty("endDate0802")
|
|
|
+ private String endDate0802;
|
|
|
+ @JsonProperty("endTime0802")
|
|
|
+ private String endTime0802;
|
|
|
+ @JsonProperty("specialCarFlag")
|
|
|
+ private String specialCarFlag;
|
|
|
+ @JsonProperty("chgOwnerFlag")
|
|
|
+ private String chgOwnerFlag;
|
|
|
+ @JsonProperty("transferDate")
|
|
|
+ private String transferDate;
|
|
|
+ @JsonProperty("loanVehicleFlag")
|
|
|
+ private Boolean loanVehicleFlag;
|
|
|
+ @JsonProperty("noDamageYears")
|
|
|
+ private Integer noDamageYears;
|
|
|
+ @JsonProperty("operateDate")
|
|
|
+ private String operateDate;
|
|
|
+ @JsonProperty("tradingRelevanceNo")
|
|
|
+ private Boolean tradingRelevanceNo;
|
|
|
+ @JsonProperty("argueSolution")
|
|
|
+ private String argueSolution;
|
|
|
+ @JsonProperty("forwardAgentUserCode")
|
|
|
+ private String forwardAgentUserCode;
|
|
|
+ @JsonProperty("arbitoryName")
|
|
|
+ private Object arbitoryName;
|
|
|
+ @JsonProperty("isElectronicPolicyBZ")
|
|
|
+ private String isElectronicPolicyBZ;
|
|
|
+ @JsonProperty("isElectronicProposalBZ")
|
|
|
+ private String isElectronicProposalBZ;
|
|
|
+ @JsonProperty("isElectronicPolicyBS")
|
|
|
+ private String isElectronicPolicyBS;
|
|
|
+ @JsonProperty("isElectronicProposalBS")
|
|
|
+ private String isElectronicProposalBS;
|
|
|
+ @JsonProperty("policyNo0801")
|
|
|
+ private String policyNo0801;
|
|
|
+ @JsonProperty("policyNo0802")
|
|
|
+ private String policyNo0802;
|
|
|
+
|
|
|
+ public PfPolicyInfoDtoDTO(QuoteVo quoteVo) {
|
|
|
+ if (quoteVo.getCiRiskInfoVo() != null) {
|
|
|
+ String startDate = quoteVo.getCiRiskInfoVo().getStartDate();
|
|
|
+ String endDate = quoteVo.getCiRiskInfoVo().getEndDate();
|
|
|
+ this.startDate0801 = startDate.substring(0, 10);
|
|
|
+ this.startTime0801 = startDate.substring(11);
|
|
|
+ this.endDate0801 = endDate.substring(0, 10);
|
|
|
+ this.endTime0801 = endDate.substring(11);
|
|
|
+ }
|
|
|
+ if (quoteVo.getBiRiskInfoVo() != null) {
|
|
|
+ String startDate = quoteVo.getBiRiskInfoVo().getStartDate();
|
|
|
+ String endDate = quoteVo.getBiRiskInfoVo().getEndDate();
|
|
|
+ this.startDate0802 = startDate.substring(0, 10);
|
|
|
+ this.startTime0802 = startDate.substring(11);
|
|
|
+ this.endDate0802 = endDate.substring(0, 10);
|
|
|
+ this.endTime0802 = endDate.substring(11);
|
|
|
+ }
|
|
|
+ this.proposalNo = "";
|
|
|
+ this.renewalNo0801 = "";
|
|
|
+ this.renewalNo0802 = "";
|
|
|
+ this.proposalNo0801 = "";
|
|
|
+ this.demandNoForce = "";
|
|
|
+ this.immEffectStartDate0801 = null;
|
|
|
+ this.immEffectStartDate0802 = null;
|
|
|
+ this.demandNoBusi = "";
|
|
|
+ this.poaSerialNo = "";
|
|
|
+ this.effectFlag0801 = false;
|
|
|
+ this.effectFlag0802 = false;
|
|
|
+ this.immEffectType0801 = null;
|
|
|
+ this.immEffectType0802 = null;
|
|
|
+ this.proposalNo0802 = "";
|
|
|
+ this.specialCarFlag = "";
|
|
|
+ CarInfoVo carInfoVo = quoteVo.getCarInfoVo();
|
|
|
+ if (carInfoVo.isTransfer()) {
|
|
|
+ this.chgOwnerFlag = "1";
|
|
|
+ this.transferDate = carInfoVo.getTransferDate();
|
|
|
+ } else {
|
|
|
+ this.chgOwnerFlag = "0";
|
|
|
+ this.transferDate = "";
|
|
|
+ }
|
|
|
+ if (carInfoVo.isLoanStatus()) {
|
|
|
+ this.loanVehicleFlag = true;
|
|
|
+ } else {
|
|
|
+ this.loanVehicleFlag = false;
|
|
|
+ }
|
|
|
+ this.noDamageYears = 0;
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
+ this.operateDate = LocalDate.now().format(formatter);
|
|
|
+ this.tradingRelevanceNo = false;
|
|
|
+ this.argueSolution = "1";
|
|
|
+ this.forwardAgentUserCode = "";
|
|
|
+ this.arbitoryName = null;
|
|
|
+ this.isElectronicPolicyBZ = "0";
|
|
|
+ this.isElectronicProposalBZ = "0";
|
|
|
+ this.isElectronicPolicyBS = "0";
|
|
|
+ this.isElectronicProposalBS = "0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfItemKind0801DtoListDTO {
|
|
|
+ @JsonProperty("kindCode_kindName")
|
|
|
+ private String kindcodeKindname;
|
|
|
+ @JsonProperty("basePremium")
|
|
|
+ private String basePremium;
|
|
|
+ @JsonProperty("shortRate")
|
|
|
+ private String shortRate;
|
|
|
+ @JsonProperty("discount")
|
|
|
+ private String discount;
|
|
|
+ @JsonProperty("grossPremium")
|
|
|
+ private String grossPremium;
|
|
|
+ @JsonProperty("priceTaxTotal")
|
|
|
+ private String priceTaxTotal;
|
|
|
+ @JsonProperty("relieveFund")
|
|
|
+ private String relieveFund;
|
|
|
+
|
|
|
+ public static TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0801DtoListDTO getCiKindInfo() {
|
|
|
+ TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0801DtoListDTO pfItemKind0801DtoListDTO = new TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0801DtoListDTO();
|
|
|
+ pfItemKind0801DtoListDTO.kindcodeKindname = "BZ-机动车交通事故责任强制险";
|
|
|
+ pfItemKind0801DtoListDTO.basePremium = "";
|
|
|
+ pfItemKind0801DtoListDTO.shortRate = "100.00";
|
|
|
+ pfItemKind0801DtoListDTO.discount = "100.00";
|
|
|
+ pfItemKind0801DtoListDTO.grossPremium = "";
|
|
|
+ pfItemKind0801DtoListDTO.priceTaxTotal = "";
|
|
|
+ pfItemKind0801DtoListDTO.relieveFund = "0.00";
|
|
|
+ return pfItemKind0801DtoListDTO;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class PfItemKind0802DtoListDTO {
|
|
|
+ @JsonProperty("riskCode")
|
|
|
+ private String riskCode;
|
|
|
+ @JsonProperty("kindInd")
|
|
|
+ private String kindInd;
|
|
|
+ @JsonProperty("sumInsured")
|
|
|
+ private String sumInsured;
|
|
|
+ @JsonProperty("valueType")
|
|
|
+ private String valueType;
|
|
|
+ @JsonProperty("clauseType")
|
|
|
+ private Boolean clauseType;
|
|
|
+ @JsonProperty("deductible")
|
|
|
+ private String deductible;
|
|
|
+ @JsonProperty("deductibleRate")
|
|
|
+ private String deductibleRate;
|
|
|
+ @JsonProperty("relatedFlagFG2020Type")
|
|
|
+ private Boolean relatedFlagFG2020Type;
|
|
|
+ @JsonProperty("kindCode")
|
|
|
+ private String kindCode;
|
|
|
+ @JsonProperty("relatedInd")
|
|
|
+ private String relatedInd;
|
|
|
+ @JsonProperty("relatedFlagFG2020")
|
|
|
+ private String relatedFlagFG2020;
|
|
|
+ @JsonProperty("displayNo")
|
|
|
+ private Integer displayNo;
|
|
|
+ @JsonProperty("srcIndex")
|
|
|
+ private Integer srcIndex;
|
|
|
+ @JsonProperty("kindName")
|
|
|
+ private String kindName;
|
|
|
+ @JsonProperty("shortRate")
|
|
|
+ private Integer shortRate;
|
|
|
+ @JsonProperty("discount")
|
|
|
+ private Integer discount;
|
|
|
+ @JsonProperty("adjustRate")
|
|
|
+ private Integer adjustRate;
|
|
|
+ @JsonProperty("noChange")
|
|
|
+ private Boolean noChange;
|
|
|
+ @JsonProperty("max")
|
|
|
+ private String max;
|
|
|
+ @JsonProperty("quantity")
|
|
|
+ private Integer quantity;
|
|
|
+ @JsonProperty("unitInsured")
|
|
|
+ private String unitInsured;
|
|
|
+ @JsonProperty("shareModel")
|
|
|
+ private String shareModel;
|
|
|
+ @JsonProperty("serviceTimes")
|
|
|
+ private String serviceTimes;
|
|
|
+
|
|
|
+ public static List<TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0802DtoListDTO> buildKindList(List<KindInfoVo> kindInfoVoList, String actualValue, Integer seatCount) {
|
|
|
+ List<TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0802DtoListDTO> kindList = new ArrayList<>();
|
|
|
+ for (KindInfoVo kindInfoVo : kindInfoVoList) {
|
|
|
+ TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0802DtoListDTO kind = new TaiPingCrawlerVehicleForPRPQueryRequest.PfItemKind0802DtoListDTO();
|
|
|
+ String kindCode = kindInfoVo.getKindCode();
|
|
|
+ KindCodeEnum kindCodeEnum = KindCodeEnum.valueOf("KCE_" + kindCode);
|
|
|
+ if (kindCodeEnum.getKindInd().equals("1")) {
|
|
|
+ kind.setRiskCode("0802");
|
|
|
+ }
|
|
|
+ kind.setKindInd(kindCodeEnum.getKindInd());
|
|
|
+ kind.setKindCode(kindCode);
|
|
|
+ kind.setShortRate(100);
|
|
|
+ kind.setDiscount(100);
|
|
|
+ kind.setAdjustRate(100);
|
|
|
+ kind.setRelatedInd("0");
|
|
|
+ kind.setRelatedFlagFG2020("0");
|
|
|
+ kind.setRelatedFlagFG2020Type(false);
|
|
|
+ kind.setValueType("");
|
|
|
+ kind.setClauseType(false);
|
|
|
+ kind.setNoChange(true);
|
|
|
+ // 车损险
|
|
|
+ if (kindCodeEnum.getKindCode().equals("0301200") || kindCodeEnum.getKindCode().equals("0401200")) {
|
|
|
+ kind.setSumInsured(actualValue);
|
|
|
+ kind.setMax(actualValue);
|
|
|
+ kind.setDisplayNo(0);
|
|
|
+ kind.setSrcIndex(0);
|
|
|
+ kind.setDeductible("0");
|
|
|
+ kind.setDeductibleRate("");
|
|
|
+ kind.setRelatedFlagFG2020("1");
|
|
|
+ kind.setRelatedFlagFG2020Type(true);
|
|
|
+ }
|
|
|
+ // 三者险
|
|
|
+ if (kindCodeEnum.getKindCode().equals("0301600") || kindCodeEnum.getKindCode().equals("0401600")) {
|
|
|
+ kind.setSumInsured(kindInfoVo.getAmount());
|
|
|
+ kind.setDisplayNo(2);
|
|
|
+ kind.setSrcIndex(2);
|
|
|
+ }
|
|
|
+ // 司机
|
|
|
+ if (kindCodeEnum.getKindCode().equals("0301701") || kindCodeEnum.getKindCode().equals("0401701") || kindCodeEnum.getKindCode().equals("0301011")) {
|
|
|
+ kind.setQuantity(1);
|
|
|
+ kind.setUnitInsured(kindInfoVo.getUnitAmount());
|
|
|
+ kind.setSumInsured(kindInfoVo.getAmount());
|
|
|
+ kind.setDisplayNo(4);
|
|
|
+ kind.setSrcIndex(4);
|
|
|
+ }
|
|
|
+ // 乘客
|
|
|
+ if (kindCodeEnum.getKindCode().equals("0301702") || kindCodeEnum.getKindCode().equals("0401702") || kindCodeEnum.getKindCode().equals("0301012")) {
|
|
|
+ kind.setQuantity(seatCount - 1);
|
|
|
+ kind.setUnitInsured(kindInfoVo.getUnitAmount());
|
|
|
+ kind.setSumInsured(String.valueOf(new BigDecimal(kindInfoVo.getUnitAmount()).multiply(new BigDecimal(seatCount - 1))));
|
|
|
+ kind.setDisplayNo(6);
|
|
|
+ kind.setSrcIndex(6);
|
|
|
+ }
|
|
|
+ // 绝对免赔率
|
|
|
+ if (kindCodeEnum.getKindCode().equals("0301008") || kindCodeEnum.getKindCode().equals("0301009") || kindCodeEnum.getKindCode().equals("0301010")) {
|
|
|
+ kind.setDeductible(kindInfoVo.getDeductibleRate());
|
|
|
+ kind.setDisplayNo(1);
|
|
|
+ kind.setSrcIndex(1);
|
|
|
+ }
|
|
|
+ // 特约
|
|
|
+ if (kindCodeEnum.getKindCode().equals("0301003") || kindCodeEnum.getKindCode().equals("0301004")
|
|
|
+ || kindCodeEnum.getKindCode().equals("0401003") || kindCodeEnum.getKindCode().equals("0401004")) {
|
|
|
+ kind.setServiceTimes(kindInfoVo.getServiceTimes());
|
|
|
+ }
|
|
|
+ kindList.add(kind);
|
|
|
+ }
|
|
|
+ return kindList;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class ClauseList0801DTO {
|
|
|
+ @JsonProperty("proposalNo")
|
|
|
+ private String proposalNo;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCode")
|
|
|
+ private String clauseCode;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCName")
|
|
|
+ private String clauseCName;
|
|
|
+
|
|
|
+ @JsonProperty("clauseTName")
|
|
|
+ private String clauseTName;
|
|
|
+
|
|
|
+ @JsonProperty("clauseEName")
|
|
|
+ private String clauseEName;
|
|
|
+
|
|
|
+ @JsonProperty("language")
|
|
|
+ private String language;
|
|
|
+
|
|
|
+ @JsonProperty("validDate")
|
|
|
+ private String validDate;
|
|
|
+
|
|
|
+ @JsonProperty("inValidDate")
|
|
|
+ private String inValidDate;
|
|
|
+
|
|
|
+ @JsonProperty("validInd")
|
|
|
+ private String validInd;
|
|
|
+
|
|
|
+ @JsonProperty("remark")
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ @JsonProperty("readOnlyInd")
|
|
|
+ private String readOnlyInd;
|
|
|
+
|
|
|
+ @JsonProperty("clauseContent")
|
|
|
+ private String clauseContent;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCompanyCode")
|
|
|
+ private String clauseCompanyCode;
|
|
|
+
|
|
|
+ @JsonProperty("clauseType")
|
|
|
+ private String clauseType;
|
|
|
+
|
|
|
+ @JsonProperty("addedValueServiceType")
|
|
|
+ private String addedValueServiceType;
|
|
|
+
|
|
|
+ @JsonProperty("clauseUseType")
|
|
|
+ private String clauseUseType;
|
|
|
+
|
|
|
+ @JsonProperty("clausePrintType")
|
|
|
+ private String clausePrintType;
|
|
|
+
|
|
|
+ @JsonProperty("createTime")
|
|
|
+ private String createTime;
|
|
|
+
|
|
|
+ @JsonProperty("creatorCode")
|
|
|
+ private String creatorCode;
|
|
|
+
|
|
|
+ @JsonProperty("updaterCode")
|
|
|
+ private String updaterCode;
|
|
|
+
|
|
|
+ @JsonProperty("updateTime")
|
|
|
+ private String updateTime;
|
|
|
+
|
|
|
+ @JsonProperty("version")
|
|
|
+ private String version;
|
|
|
+
|
|
|
+ @JsonProperty("riskClass")
|
|
|
+ private String riskClass;
|
|
|
+
|
|
|
+ @JsonProperty("conflictRuleCodes")
|
|
|
+ private List<String> conflictRuleCodes;
|
|
|
+
|
|
|
+ @JsonProperty("relyRuleDto")
|
|
|
+ private String relyRuleDto;
|
|
|
+
|
|
|
+ @JsonProperty("productType")
|
|
|
+ private String productType;
|
|
|
+
|
|
|
+ @JsonProperty("matchRuleId")
|
|
|
+ private String matchRuleId;
|
|
|
+
|
|
|
+ @JsonProperty("editFlag")
|
|
|
+ private String editFlag;
|
|
|
+
|
|
|
+ @JsonProperty("associateClauseCodes")
|
|
|
+ private String associateClauseCodes;
|
|
|
+
|
|
|
+ @JsonProperty("isEndor")
|
|
|
+ private String isEndor;
|
|
|
+
|
|
|
+ @JsonProperty("ggClauseParameterVos")
|
|
|
+ private String ggClauseParameterVos;
|
|
|
+
|
|
|
+ @JsonProperty("clauseVariableArr")
|
|
|
+ private String clauseVariableArr;
|
|
|
+
|
|
|
+ @JsonProperty("showDelete")
|
|
|
+ private Boolean showDelete;
|
|
|
+
|
|
|
+ @JsonProperty("showEdit")
|
|
|
+ private Boolean showEdit;
|
|
|
+
|
|
|
+ @JsonProperty("serialNo")
|
|
|
+ private Integer serialNo;
|
|
|
+
|
|
|
+ @JsonProperty("disabled")
|
|
|
+ private TaiPingCrawlerVehicleForPRPQueryRequest.ClauseList0801DTO.DisabledVo disabled;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class DisabledVo {
|
|
|
+ @JsonProperty("serialNo")
|
|
|
+ private Boolean serialNo;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCode")
|
|
|
+ private Boolean clauseCode;
|
|
|
+
|
|
|
+ @JsonProperty("clauseContent")
|
|
|
+ private Boolean clauseContent;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class ClauseList0802DTO {
|
|
|
+ @JsonProperty("proposalNo")
|
|
|
+ private String proposalNo;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCode")
|
|
|
+ private String clauseCode;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCName")
|
|
|
+ private String clauseCName;
|
|
|
+
|
|
|
+ @JsonProperty("clauseTName")
|
|
|
+ private String clauseTName;
|
|
|
+
|
|
|
+ @JsonProperty("clauseEName")
|
|
|
+ private String clauseEName;
|
|
|
+
|
|
|
+ @JsonProperty("language")
|
|
|
+ private String language;
|
|
|
+
|
|
|
+ @JsonProperty("validDate")
|
|
|
+ private String validDate;
|
|
|
+
|
|
|
+ @JsonProperty("inValidDate")
|
|
|
+ private String inValidDate;
|
|
|
+
|
|
|
+ @JsonProperty("validInd")
|
|
|
+ private String validInd;
|
|
|
+
|
|
|
+ @JsonProperty("remark")
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ @JsonProperty("readOnlyInd")
|
|
|
+ private String readOnlyInd;
|
|
|
+
|
|
|
+ @JsonProperty("clauseContent")
|
|
|
+ private String clauseContent;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCompanyCode")
|
|
|
+ private String clauseCompanyCode;
|
|
|
+
|
|
|
+ @JsonProperty("clauseType")
|
|
|
+ private String clauseType;
|
|
|
+
|
|
|
+ @JsonProperty("addedValueServiceType")
|
|
|
+ private String addedValueServiceType;
|
|
|
+
|
|
|
+ @JsonProperty("clauseUseType")
|
|
|
+ private String clauseUseType;
|
|
|
+
|
|
|
+ @JsonProperty("clausePrintType")
|
|
|
+ private String clausePrintType;
|
|
|
+
|
|
|
+ @JsonProperty("createTime")
|
|
|
+ private String createTime;
|
|
|
+
|
|
|
+ @JsonProperty("creatorCode")
|
|
|
+ private String creatorCode;
|
|
|
+
|
|
|
+ @JsonProperty("updaterCode")
|
|
|
+ private String updaterCode;
|
|
|
+
|
|
|
+ @JsonProperty("updateTime")
|
|
|
+ private String updateTime;
|
|
|
+
|
|
|
+ @JsonProperty("version")
|
|
|
+ private String version;
|
|
|
+
|
|
|
+ @JsonProperty("riskClass")
|
|
|
+ private String riskClass;
|
|
|
+
|
|
|
+ @JsonProperty("conflictRuleCodes")
|
|
|
+ private List<String> conflictRuleCodes;
|
|
|
+
|
|
|
+ @JsonProperty("relyRuleDto")
|
|
|
+ private String relyRuleDto;
|
|
|
+
|
|
|
+ @JsonProperty("productType")
|
|
|
+ private String productType;
|
|
|
+
|
|
|
+ @JsonProperty("matchRuleId")
|
|
|
+ private String matchRuleId;
|
|
|
+
|
|
|
+ @JsonProperty("editFlag")
|
|
|
+ private String editFlag;
|
|
|
+
|
|
|
+ @JsonProperty("associateClauseCodes")
|
|
|
+ private String associateClauseCodes;
|
|
|
+
|
|
|
+ @JsonProperty("isEndor")
|
|
|
+ private String isEndor;
|
|
|
+
|
|
|
+ @JsonProperty("ggClauseParameterVos")
|
|
|
+ private String ggClauseParameterVos;
|
|
|
+
|
|
|
+ @JsonProperty("clauseVariableArr")
|
|
|
+ private String clauseVariableArr;
|
|
|
+
|
|
|
+ @JsonProperty("showDelete")
|
|
|
+ private Boolean showDelete;
|
|
|
+
|
|
|
+ @JsonProperty("showEdit")
|
|
|
+ private Boolean showEdit;
|
|
|
+
|
|
|
+ @JsonProperty("serialNo")
|
|
|
+ private Integer serialNo;
|
|
|
+
|
|
|
+ @JsonProperty("disabled")
|
|
|
+ private TaiPingCrawlerVehicleForPRPQueryRequest.ClauseList0802DTO.DisabledVo disabled;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class DisabledVo {
|
|
|
+ @JsonProperty("serialNo")
|
|
|
+ private Boolean serialNo;
|
|
|
+
|
|
|
+ @JsonProperty("clauseCode")
|
|
|
+ private Boolean clauseCode;
|
|
|
+
|
|
|
+ @JsonProperty("clauseContent")
|
|
|
+ private Boolean clauseContent;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|