|
|
@@ -0,0 +1,853 @@
|
|
|
+package com.jzg.quotation.dajia.api.entity.request;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.jzg.commons.util.StringUtils;
|
|
|
+import com.jzg.quotation.commons.entity.vo.aggregated.QuoteVo;
|
|
|
+import com.jzg.quotation.commons.entity.vo.quote.CustomerInfoVo;
|
|
|
+import com.jzg.quotation.commons.entity.vo.quote.RiskInfoVo;
|
|
|
+import com.jzg.quotation.dajia.api.constant.*;
|
|
|
+import com.jzg.quotation.dajia.api.entity.DaJiaApiConfigureParameters;
|
|
|
+import com.jzg.quotation.dajia.api.entity.DaJiaBaseRequest;
|
|
|
+import com.jzg.quotation.dajia.api.entity.response.ODR2009Response;
|
|
|
+import com.jzg.quotation.dajia.api.entity.vo.PersonAreaVo;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
+import static com.ydtech.modules.order.entity.api.dajia.constants.CFuelType.*;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description: ODR1008 车辆和客户信息确认 请求参数
|
|
|
+ * @author: wenks
|
|
|
+ * @date: 2023/11/14 16:51
|
|
|
+ **/
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+//@NoArgsConstructor
|
|
|
+@Data
|
|
|
+public class ODR1008Request extends DaJiaBaseRequest {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = -3271826016394642480L;
|
|
|
+
|
|
|
+ @JsonProperty("body")
|
|
|
+ private BodyDTO body;
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class BodyDTO implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 7312734581391918243L;
|
|
|
+ @JsonProperty("applicantInfo")
|
|
|
+ private ApplicantInfoDTO applicantInfo;
|
|
|
+ @JsonProperty("businessInfo")
|
|
|
+ private BusinessInfoDTO businessInfo;
|
|
|
+ @JsonProperty("insuredInfo")
|
|
|
+ private InsuredInfoDTO insuredInfo;
|
|
|
+ @JsonProperty("jqProdNo")
|
|
|
+ private String jqProdNo;
|
|
|
+ @JsonProperty("orderNo")
|
|
|
+ private String orderNo;
|
|
|
+ @JsonProperty("syProdNo")
|
|
|
+ private String syProdNo;
|
|
|
+ @JsonProperty("vehicleInfo")
|
|
|
+ private VehicleInfoDTO vehicleInfo;
|
|
|
+ @JsonProperty("vehicleOwnerInfo")
|
|
|
+ private VehicleOwnerInfoDTO vehicleOwnerInfo;
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class ApplicantInfoDTO implements Serializable {
|
|
|
+ private static final long serialVersionUID = 2368014689374178222L;
|
|
|
+ @JsonProperty("applicantCBusiness")
|
|
|
+ private Integer applicantCBusiness;
|
|
|
+ @JsonProperty("applicantCCertfCde")
|
|
|
+ private String applicantCCertfCde;
|
|
|
+ @JsonProperty("applicantCCertfCls")
|
|
|
+ private String applicantCCertfCls;
|
|
|
+ @JsonProperty("applicantCCountry")
|
|
|
+ private Integer applicantCCountry;
|
|
|
+ @JsonProperty("applicantCCusRiskLvl")
|
|
|
+ private Integer applicantCCusRiskLvl;
|
|
|
+ @JsonProperty("applicantCNation")
|
|
|
+ private Integer applicantCNation;
|
|
|
+ @JsonProperty("applicantCProfissionXiq1")
|
|
|
+ private Integer applicantCProfissionXiq1;
|
|
|
+ @JsonProperty("applicantCProfissionXiq2")
|
|
|
+ private Integer applicantCProfissionXiq2;
|
|
|
+ @JsonProperty("applicantCde")
|
|
|
+ private Long applicantCde;
|
|
|
+ @JsonProperty("applicantChasalesCertfCde")
|
|
|
+ private Long applicantChasalesCertfCde;
|
|
|
+ @JsonProperty("applicantChasalesCertfCls")
|
|
|
+ private String applicantChasalesCertfCls;
|
|
|
+ @JsonProperty("applicantChasalesClntMrk")
|
|
|
+ private Integer applicantChasalesClntMrk;
|
|
|
+ @JsonProperty("applicantChasalesEmail")
|
|
|
+ private String applicantChasalesEmail;
|
|
|
+ @JsonProperty("applicantChasalesMobile")
|
|
|
+ private Long applicantChasalesMobile;
|
|
|
+ @JsonProperty("applicantChasalesNme")
|
|
|
+ private String applicantChasalesNme;
|
|
|
+ @JsonProperty("applicantCity")
|
|
|
+ private String applicantCity;
|
|
|
+ @JsonProperty("applicantClntAddr")
|
|
|
+ private String applicantClntAddr;
|
|
|
+ @JsonProperty("applicantClntMrk")
|
|
|
+ private Integer applicantClntMrk;
|
|
|
+ @JsonProperty("applicantCounty")
|
|
|
+ private String applicantCounty;
|
|
|
+ @JsonProperty("applicantEmPower")
|
|
|
+ private Integer applicantEmPower;
|
|
|
+ @JsonProperty("applicantSuffixAddr")
|
|
|
+ private String applicantSuffixAddr;
|
|
|
+ @JsonProperty("applicantEmail")
|
|
|
+ private String applicantEmail;
|
|
|
+ @JsonProperty("applicantEthnicity")
|
|
|
+ private String applicantEthnicity;
|
|
|
+ @JsonProperty("applicantHomeAddr")
|
|
|
+ private String applicantHomeAddr;
|
|
|
+ @JsonProperty("applicantIssueOrg")
|
|
|
+ private String applicantIssueOrg;
|
|
|
+ @JsonProperty("applicantMobile")
|
|
|
+ private String applicantMobile;
|
|
|
+ @JsonProperty("applicantNme")
|
|
|
+ private String applicantNme;
|
|
|
+ @JsonProperty("applicantNote")
|
|
|
+ private String applicantNote;
|
|
|
+ @JsonProperty("applicantPayerRel")
|
|
|
+ private Integer applicantPayerRel;
|
|
|
+ @JsonProperty("applicantPhoneCertfCde")
|
|
|
+ private Long applicantPhoneCertfCde;
|
|
|
+ @JsonProperty("applicantPhoneCertiType")
|
|
|
+ private String applicantPhoneCertiType;
|
|
|
+ @JsonProperty("applicantPhoneName")
|
|
|
+ private String applicantPhoneName;
|
|
|
+ @JsonProperty("applicantPhoneType")
|
|
|
+ private String applicantPhoneType;
|
|
|
+ @JsonProperty("applicantProvince")
|
|
|
+ private String applicantProvince;
|
|
|
+ @JsonProperty("applicantSex")
|
|
|
+ private String applicantSex;
|
|
|
+ @JsonProperty("applicantTBirthday")
|
|
|
+ private String applicantTBirthday;
|
|
|
+ @JsonProperty("applicantTEffectiveDate")
|
|
|
+ private String applicantTEffectiveDate;
|
|
|
+ @JsonProperty("applicantTExpiredDate")
|
|
|
+ private String applicantTExpiredDate;
|
|
|
+ @JsonProperty("applicantWorkDpt")
|
|
|
+ private Integer applicantWorkDpt;
|
|
|
+ @JsonProperty("applicantZipCde")
|
|
|
+ private String applicantZipCde;
|
|
|
+ @JsonProperty("applicantTel")
|
|
|
+ private String applicantTel;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class BusinessInfoDTO implements Serializable {
|
|
|
+ private static final long serialVersionUID = 2058043103906170015L;
|
|
|
+ @JsonProperty("busiAgentNme")
|
|
|
+ private String busiAgentNme;
|
|
|
+ @JsonProperty("busiBrkrCde")
|
|
|
+ private String busiBrkrCde;
|
|
|
+ @JsonProperty("busiBsnsTyp")
|
|
|
+ private String busiBsnsTyp;
|
|
|
+ @JsonProperty("busiChaSalesId")
|
|
|
+ private Integer busiChaSalesId;
|
|
|
+ @JsonProperty("busiChannelSrc")
|
|
|
+ private String busiChannelSrc;
|
|
|
+ @JsonProperty("busiCoopCde")
|
|
|
+ private String busiCoopCde;
|
|
|
+ @JsonProperty("busiCoopNme")
|
|
|
+ private String busiCoopNme;
|
|
|
+ @JsonProperty("busiDataFlag")
|
|
|
+ private String busiDataFlag;
|
|
|
+ @JsonProperty("busiDataSrc")
|
|
|
+ private String busiDataSrc;
|
|
|
+ @JsonProperty("busiDptCde")
|
|
|
+ private String busiDptCde;
|
|
|
+ @JsonProperty("busiGarageCode")
|
|
|
+ private String busiGarageCode;
|
|
|
+ @JsonProperty("busiGarageName")
|
|
|
+ private String busiGarageName;
|
|
|
+ @JsonProperty("busiGrantDptCde")
|
|
|
+ private String busiGrantDptCde;
|
|
|
+ @JsonProperty("busiGrantDptNme")
|
|
|
+ private String busiGrantDptNme;
|
|
|
+ @JsonProperty("busiId")
|
|
|
+ private String busiId;
|
|
|
+ @JsonProperty("busiOpdpt")
|
|
|
+ private String busiOpdpt;
|
|
|
+ @JsonProperty("busiOprCde")
|
|
|
+ private String busiOprCde;
|
|
|
+ @JsonProperty("busiOprNme")
|
|
|
+ private String busiOprNme;
|
|
|
+ @JsonProperty("busiRecSubChannel")
|
|
|
+ private String busiRecSubChannel;
|
|
|
+ @JsonProperty("busiRecommendCde")
|
|
|
+ private String busiRecommendCde;
|
|
|
+ @JsonProperty("busiRepairFlag")
|
|
|
+ private Integer busiRepairFlag;
|
|
|
+ @JsonProperty("busiServiceCode")
|
|
|
+ private String busiServiceCode;
|
|
|
+ @JsonProperty("busiSlsCde")
|
|
|
+ private String busiSlsCde;
|
|
|
+ @JsonProperty("busiSlsId")
|
|
|
+ private Long busiSlsId;
|
|
|
+ @JsonProperty("busiSlsNme")
|
|
|
+ private String busiSlsNme;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class InsuredInfoDTO implements Serializable {
|
|
|
+ private static final long serialVersionUID = 1471113087138506721L;
|
|
|
+ @JsonProperty("insuredBusiness")
|
|
|
+ private Integer insuredBusiness;
|
|
|
+ @JsonProperty("insuredCde")
|
|
|
+ private Long insuredCde;
|
|
|
+ @JsonProperty("insuredCertfCde")
|
|
|
+ private String insuredCertfCde;
|
|
|
+ @JsonProperty("insuredCertfCls")
|
|
|
+ private String insuredCertfCls;
|
|
|
+ @JsonProperty("insuredCity")
|
|
|
+ private String insuredCity;
|
|
|
+ @JsonProperty("insuredClntAddr")
|
|
|
+ private String insuredClntAddr;
|
|
|
+ @JsonProperty("insuredClntMrk")
|
|
|
+ private Integer insuredClntMrk;
|
|
|
+ @JsonProperty("insuredCountry")
|
|
|
+ private Integer insuredCountry;
|
|
|
+ @JsonProperty("insuredCounty")
|
|
|
+ private String insuredCounty;
|
|
|
+ @JsonProperty("insuredSuffixAddr")
|
|
|
+ private String insuredSuffixAddr;
|
|
|
+ @JsonProperty("insuredCusRiskLvl")
|
|
|
+ private Integer insuredCusRiskLvl;
|
|
|
+ @JsonProperty("insuredEmail")
|
|
|
+ private String insuredEmail;
|
|
|
+ @JsonProperty("insuredEthnicity")
|
|
|
+ private String insuredEthnicity;
|
|
|
+ @JsonProperty("insuredHomeAddr")
|
|
|
+ private String insuredHomeAddr;
|
|
|
+ @JsonProperty("insuredIssueOrg")
|
|
|
+ private String insuredIssueOrg;
|
|
|
+ @JsonProperty("insuredMobile")
|
|
|
+ private String insuredMobile;
|
|
|
+ @JsonProperty("insuredNation")
|
|
|
+ private Integer insuredNation;
|
|
|
+ @JsonProperty("insuredNme")
|
|
|
+ private String insuredNme;
|
|
|
+ @JsonProperty("insuredPhoneCertfCde")
|
|
|
+ private Long insuredPhoneCertfCde;
|
|
|
+ @JsonProperty("insuredPhoneCertiType")
|
|
|
+ private String insuredPhoneCertiType;
|
|
|
+ @JsonProperty("insuredPhoneName")
|
|
|
+ private String insuredPhoneName;
|
|
|
+ @JsonProperty("insuredPhoneType")
|
|
|
+ private String insuredPhoneType;
|
|
|
+ @JsonProperty("insuredProfissionXiq1")
|
|
|
+ private Integer insuredProfissionXiq1;
|
|
|
+ @JsonProperty("insuredProfissionXiq2")
|
|
|
+ private Integer insuredProfissionXiq2;
|
|
|
+ @JsonProperty("insuredProvince")
|
|
|
+ private String insuredProvince;
|
|
|
+ @JsonProperty("insuredResidAddr")
|
|
|
+ private String insuredResidAddr;
|
|
|
+ @JsonProperty("insuredSex")
|
|
|
+ private String insuredSex;
|
|
|
+ @JsonProperty("insuredTBirthday")
|
|
|
+ private String insuredTBirthday;
|
|
|
+ @JsonProperty("insuredTEffectiveDate")
|
|
|
+ private String insuredTEffectiveDate;
|
|
|
+ @JsonProperty("insuredTExpiredDate")
|
|
|
+ private String insuredTExpiredDate;
|
|
|
+ @JsonProperty("insuredWorkDpt")
|
|
|
+ private Integer insuredWorkDpt;
|
|
|
+ @JsonProperty("insuredZipCde")
|
|
|
+ private String insuredZipCde;
|
|
|
+ @JsonProperty("insuredTel")
|
|
|
+ private String insuredTel;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class VehicleInfoDTO implements Serializable {
|
|
|
+ private static final long serialVersionUID = 8099502440213359843L;
|
|
|
+ @JsonProperty("vehicleAnswer")
|
|
|
+ private String vehicleAnswer;
|
|
|
+ @JsonProperty("vehicleBrandId")
|
|
|
+ private String vehicleBrandId;
|
|
|
+ @JsonProperty("vehicleCSaleCompany")
|
|
|
+ private String vehicleCSaleCompany;
|
|
|
+ @JsonProperty("vehicleChgOwnerFlag")
|
|
|
+ private Integer vehicleChgOwnerFlag;
|
|
|
+ @JsonProperty("vehicleEcdemicMrk")
|
|
|
+ private String vehicleEcdemicMrk;
|
|
|
+ @JsonProperty("vehicleEngNo")
|
|
|
+ private String vehicleEngNo;
|
|
|
+ @JsonProperty("vehicleFrmNo")
|
|
|
+ private String vehicleFrmNo;
|
|
|
+ @JsonProperty("vehicleFstRegYmBar")
|
|
|
+ private String vehicleFstRegYmBar;
|
|
|
+ @JsonProperty("vehicleFuelType")
|
|
|
+ private String vehicleFuelType;
|
|
|
+ @JsonProperty("vehicleIs4SShop")
|
|
|
+ private Integer vehicleIs4SShop;
|
|
|
+ @JsonProperty("vehicleIsQuery")
|
|
|
+ private Integer vehicleIsQuery;
|
|
|
+ @JsonProperty("vehicleLoanVehicleFlag")
|
|
|
+ private Integer vehicleLoanVehicleFlag;
|
|
|
+ @JsonProperty("vehicleModelCde")
|
|
|
+ private String vehicleModelCde;
|
|
|
+ @JsonProperty("vehicleModelEnergyType")
|
|
|
+ private String vehicleModelEnergyType;
|
|
|
+ @JsonProperty("vehicleModelNme")
|
|
|
+ private String vehicleModelNme;
|
|
|
+ @JsonProperty("vehicleNConsultPurchaseValue")
|
|
|
+ private Double vehicleNConsultPurchaseValue;
|
|
|
+ @JsonProperty("vehicleNCurbWt")
|
|
|
+ private Float vehicleNCurbWt;
|
|
|
+ @JsonProperty("vehicleNDisplacement")
|
|
|
+ private String vehicleNDisplacement;
|
|
|
+ @JsonProperty("vehicleNNewPurchaseValue")
|
|
|
+ private String vehicleNNewPurchaseValue;
|
|
|
+ @JsonProperty("vehicleNPower")
|
|
|
+ private Double vehicleNPower;
|
|
|
+ @JsonProperty("vehicleNPureRange")
|
|
|
+ private Integer vehicleNPureRange;
|
|
|
+ @JsonProperty("vehicleNSeatNum")
|
|
|
+ private String vehicleNSeatNum;
|
|
|
+ @JsonProperty("vehicleNTonage")
|
|
|
+ private Double vehicleNTonage;
|
|
|
+ @JsonProperty("vehicleNewMrk")
|
|
|
+ private Integer vehicleNewMrk;
|
|
|
+ @JsonProperty("vehicleNewPlate")
|
|
|
+ private Integer vehicleNewPlate;
|
|
|
+ @JsonProperty("vehiclePlateNo")
|
|
|
+ private String vehiclePlateNo;
|
|
|
+ @JsonProperty("vehiclePlateTyp")
|
|
|
+ private String vehiclePlateTyp;
|
|
|
+ @JsonProperty("vehicleRegVhlTyp")
|
|
|
+ private String vehicleRegVhlTyp;
|
|
|
+ @JsonProperty("vehicleSaleAreaCode")
|
|
|
+ private Integer vehicleSaleAreaCode;
|
|
|
+ @JsonProperty("vehicleSpecialRiskFlag")
|
|
|
+ private Integer vehicleSpecialRiskFlag;
|
|
|
+ @JsonProperty("vehicleTBuyCarDate")
|
|
|
+ private String vehicleTBuyCarDate;
|
|
|
+ @JsonProperty("vehicleTCertificateDate")
|
|
|
+ private String vehicleTCertificateDate;
|
|
|
+ @JsonProperty("vehicleTTransferDate")
|
|
|
+ private String vehicleTTransferDate;
|
|
|
+ @JsonProperty("vehicleTVhlCertDate")
|
|
|
+ private String vehicleTVhlCertDate;
|
|
|
+ @JsonProperty("vehicleTfiSpecialMrk")
|
|
|
+ private Integer vehicleTfiSpecialMrk;
|
|
|
+ @JsonProperty("vehicleTraUsageCde")
|
|
|
+ private Integer vehicleTraUsageCde;
|
|
|
+ @JsonProperty("vehicleUsageCde")
|
|
|
+ private String vehicleUsageCde;
|
|
|
+ @JsonProperty("vehicleVhlCertNo")
|
|
|
+ private Long vehicleVhlCertNo;
|
|
|
+ @JsonProperty("vehicleVhlCertType")
|
|
|
+ private String vehicleVhlCertType;
|
|
|
+ @JsonProperty("vehicleVhlTyp")
|
|
|
+ private String vehicleVhlTyp;
|
|
|
+ @JsonProperty("vehicleInspectionCde")
|
|
|
+ private String vehicleInspectionCde;
|
|
|
+ @JsonProperty("vehicleInspectTm")
|
|
|
+ private String vehicleInspectTm;
|
|
|
+ @JsonProperty("vehicleInspectorNme")
|
|
|
+ private String vehicleInspectorNme;
|
|
|
+ @JsonProperty("vehicleInspectRec")
|
|
|
+ private String vehicleInspectRec;
|
|
|
+ @JsonProperty("vehicleResvTxt1")
|
|
|
+ private String vehicleResvTxt1;
|
|
|
+ @JsonProperty("vehicleResvTxt8")
|
|
|
+ private String vehicleResvTxt8;
|
|
|
+ @JsonProperty("vehicleTransferTm")
|
|
|
+ private String vehicleTransferTm;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class VehicleOwnerInfoDTO implements Serializable {
|
|
|
+ private static final long serialVersionUID = 3725955472263478330L;
|
|
|
+ @JsonProperty("vehicleOwnerCCertfCde")
|
|
|
+ private String vehicleOwnerCCertfCde;
|
|
|
+ @JsonProperty("vehicleOwnerCCertfCls")
|
|
|
+ private String vehicleOwnerCCertfCls;
|
|
|
+ @JsonProperty("vehicleOwnerCClntAddr")
|
|
|
+ private String vehicleOwnerCClntAddr;
|
|
|
+ @JsonProperty("vehicleOwnerCContactTel")
|
|
|
+ private String vehicleOwnerCContactTel;
|
|
|
+ @JsonProperty("vehicleOwnerCCountry")
|
|
|
+ private Integer vehicleOwnerCCountry;
|
|
|
+ @JsonProperty("vehicleOwnerCEmail")
|
|
|
+ private String vehicleOwnerCEmail;
|
|
|
+ @JsonProperty("vehicleOwnerCMobile")
|
|
|
+ private String vehicleOwnerCMobile;
|
|
|
+ @JsonProperty("vehicleOwnerCNation")
|
|
|
+ private Integer vehicleOwnerCNation;
|
|
|
+ @JsonProperty("vehicleOwnerCOwnerCls")
|
|
|
+ private Integer vehicleOwnerCOwnerCls;
|
|
|
+ @JsonProperty("vehicleOwnerCOwnerNme")
|
|
|
+ private String vehicleOwnerCOwnerNme;
|
|
|
+ @JsonProperty("vehicleOwnerCSex")
|
|
|
+ private String vehicleOwnerCSex;
|
|
|
+ @JsonProperty("vehicleOwnerCWorkdptKind")
|
|
|
+ private Integer vehicleOwnerCWorkdptKind;
|
|
|
+ @JsonProperty("vehicleOwnerCZipCde")
|
|
|
+ private String vehicleOwnerCZipCde;
|
|
|
+ @JsonProperty("vehicleOwnerTBirthday")
|
|
|
+ private String vehicleOwnerTBirthday;
|
|
|
+ @JsonProperty("vehicleOwnerTExpiredDate")
|
|
|
+ private String vehicleOwnerTExpiredDate;
|
|
|
+
|
|
|
+ @JsonProperty("vehicleOwnerProvince")
|
|
|
+ private String vehicleOwnerProvince;
|
|
|
+ @JsonProperty("vehicleOwnerCity")
|
|
|
+ private String vehicleOwnerCity;
|
|
|
+ @JsonProperty("vehicleOwnerCounty")
|
|
|
+ private String vehicleOwnerCounty;
|
|
|
+ @JsonProperty("vehicleOwnerSuffixAddr")
|
|
|
+ private String vehicleOwnerSuffixAddr;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public ODR1008Request(String orderNo, String busiId, QuoteVo quoteVo, DaJiaApiConfigureParameters daJiaConfigureParameters,
|
|
|
+ ODR2009Response odr2009Response, PersonAreaVo ownerInfoArea, PersonAreaVo insuredPersonArea,
|
|
|
+ PersonAreaVo policyHolderArea) {
|
|
|
+ super(daJiaConfigureParameters.getChannelCode(), ServiceCode.ODR1008.getCode());
|
|
|
+ if (Objects.isNull(body)) {
|
|
|
+ this.body = new BodyDTO();
|
|
|
+ }
|
|
|
+ this.body.setOrderNo(orderNo);
|
|
|
+ //设置车主信息
|
|
|
+ setVehicleOwnerInfo(quoteVo, ownerInfoArea);
|
|
|
+ //设置投保人信息
|
|
|
+ setApplicantInfo(quoteVo, policyHolderArea);
|
|
|
+ //设置被保人信息
|
|
|
+ setInsuredInfo(quoteVo, insuredPersonArea);
|
|
|
+ //设置车辆信息
|
|
|
+ setVehicleInfo(quoteVo, odr2009Response);
|
|
|
+ //设置业务归属信息
|
|
|
+ setBusinessInfo(daJiaConfigureParameters, busiId);
|
|
|
+ }
|
|
|
+
|
|
|
+ //根据身份证获取生日
|
|
|
+ public String getBirthdateFromIDCardNumber(String idCardNumber) {
|
|
|
+ int year = Integer.parseInt(idCardNumber.substring(6, 10));
|
|
|
+ int month = Integer.parseInt(idCardNumber.substring(10, 12));
|
|
|
+ int day = Integer.parseInt(idCardNumber.substring(12, 14));
|
|
|
+ return year + "-" + month + "-" + day;
|
|
|
+ }
|
|
|
+
|
|
|
+ //根据身份证获取性别
|
|
|
+ public String getSexFromIdCardNumber(String idCardNumber) {
|
|
|
+ String genderBit = idCardNumber.substring(16, 17);
|
|
|
+ int genderBitNumber = Integer.parseInt(genderBit);
|
|
|
+ boolean isOdd = genderBitNumber % 2 != 0;
|
|
|
+ if (isOdd) {
|
|
|
+ return CResvSex.MAN.getCode();
|
|
|
+ } else {
|
|
|
+ return CResvSex.WOMAN.getCode();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //设置车主信息
|
|
|
+ public void setVehicleOwnerInfo(QuoteVo quoteVo, PersonAreaVo OwnerPersonArea) {
|
|
|
+ BodyDTO.VehicleOwnerInfoDTO vehicleOwnerInfoDTO = new BodyDTO.VehicleOwnerInfoDTO();
|
|
|
+ CustomerInfoVo ownerInfo = quoteVo.getOwnersInfo();
|
|
|
+ if(StringUtils.isBlank(ownerInfo.getProperty()) || !"0".equals(ownerInfo.getProperty())) {
|
|
|
+ //设置证件号码
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCCertfCde(ownerInfo.getIdentifyNumber());
|
|
|
+ //设置证件类型
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCCertfCls("01");
|
|
|
+ //车主类型
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCOwnerCls(COwnerCls.CLS1.getCode());
|
|
|
+ //车主性别
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCSex(getSexFromIdCardNumber(ownerInfo.getIdentifyNumber()));
|
|
|
+ //身份证号获取出生日期
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerTBirthday(getBirthdateFromIDCardNumber(ownerInfo.getIdentifyNumber()));
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerProvince(OwnerPersonArea.getProvinceCode());
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCity(OwnerPersonArea.getCityCode());
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCounty(OwnerPersonArea.getCountyCode());
|
|
|
+ }else{
|
|
|
+ //设置证件号码
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCCertfCde(ownerInfo.getOrganizationCode());
|
|
|
+ //设置证件类型
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCCertfCls("04");
|
|
|
+ //车主类型
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCOwnerCls(COwnerCls.CLS3.getCode());
|
|
|
+
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerProvince(ownerInfo.getProvince());
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCity(ownerInfo.getCity());
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCounty(ownerInfo.getCounty());
|
|
|
+ }
|
|
|
+ //新能源测试使用
|
|
|
+// vehicleOwnerInfoDTO.setVehicleOwnerCCertfCde("E88888888");
|
|
|
+// vehicleOwnerInfoDTO.setVehicleOwnerCCertfCls("02");
|
|
|
+ //通讯地址
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCClntAddr(ownerInfo.getAddr());
|
|
|
+ //手机号
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCContactTel(ownerInfo.getMobile());
|
|
|
+ //邮箱号
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCEmail(ownerInfo.getEmail());
|
|
|
+ //手机号
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCMobile(ownerInfo.getMobile());
|
|
|
+ //车主姓名
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCOwnerNme(ownerInfo.getName());
|
|
|
+
|
|
|
+ //邮编
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCZipCde("030024");
|
|
|
+
|
|
|
+// //证件有效日期
|
|
|
+// vehicleOwnerInfoDTO.setVehicleOwnerTEffectiveDate(quoteInfoVo.getOwnerInfo().getIdentifyValidDate());
|
|
|
+ //证件失效日期
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerTExpiredDate(ownerInfo.getIdentifyValidEndDate());
|
|
|
+ //国家
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCNation(1);
|
|
|
+ //国籍
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCCountry(1);
|
|
|
+ //单位性质 默认为9 其他
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerCWorkdptKind(9);
|
|
|
+
|
|
|
+
|
|
|
+ int index = -1;
|
|
|
+ if (OwnerPersonArea.getCountyName() != null) {
|
|
|
+ index = ownerInfo.getAddr().indexOf(OwnerPersonArea.getCountyName());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (index > -1) {
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerSuffixAddr(ownerInfo.getAddr().substring(index + OwnerPersonArea.getCountyName().length()));
|
|
|
+ } else {
|
|
|
+ vehicleOwnerInfoDTO.setVehicleOwnerSuffixAddr(ownerInfo.getAddr());
|
|
|
+ }
|
|
|
+ this.body.setVehicleOwnerInfo(vehicleOwnerInfoDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ //设置投保人信息
|
|
|
+ public void setApplicantInfo(QuoteVo quoteInfoVo, PersonAreaVo policyHolderPersonArea) {
|
|
|
+ BodyDTO.ApplicantInfoDTO applicantInfoDTO = new BodyDTO.ApplicantInfoDTO();
|
|
|
+
|
|
|
+ CustomerInfoVo policyHolderInfo = quoteInfoVo.getPolicyHolderInfo();
|
|
|
+ if(StringUtils.isBlank(policyHolderInfo.getProperty()) || !"0".equals(policyHolderInfo.getProperty())) {
|
|
|
+ //设置证件号码
|
|
|
+ applicantInfoDTO.setApplicantCCertfCde(policyHolderInfo.getIdentifyNumber());
|
|
|
+ //设置证件类型
|
|
|
+ applicantInfoDTO.setApplicantCCertfCls("01");
|
|
|
+ //客户类型
|
|
|
+ applicantInfoDTO.setApplicantClntMrk(COwnerCls.CLS1.getCode());
|
|
|
+ //投保人出生日期
|
|
|
+ applicantInfoDTO.setApplicantTBirthday(getBirthdateFromIDCardNumber(policyHolderInfo.getIdentifyNumber()));
|
|
|
+ //投保人性别
|
|
|
+ applicantInfoDTO.setApplicantSex(getSexFromIdCardNumber(policyHolderInfo.getIdentifyNumber()));
|
|
|
+ //省市县
|
|
|
+ applicantInfoDTO.setApplicantProvince(policyHolderPersonArea.getProvinceCode());
|
|
|
+ applicantInfoDTO.setApplicantCity(policyHolderPersonArea.getCityCode());
|
|
|
+ applicantInfoDTO.setApplicantCounty(policyHolderPersonArea.getCountyCode());
|
|
|
+ }else{
|
|
|
+ //设置证件号码
|
|
|
+ applicantInfoDTO.setApplicantCCertfCde(policyHolderInfo.getOrganizationCode());
|
|
|
+ //设置证件类型
|
|
|
+ applicantInfoDTO.setApplicantCCertfCls("04");
|
|
|
+ //客户类型
|
|
|
+ applicantInfoDTO.setApplicantClntMrk(COwnerCls.CLS3.getCode());
|
|
|
+ //省市县
|
|
|
+ applicantInfoDTO.setApplicantProvince(policyHolderInfo.getProvince());
|
|
|
+ applicantInfoDTO.setApplicantCity(policyHolderInfo.getCity());
|
|
|
+ applicantInfoDTO.setApplicantCounty(policyHolderInfo.getCounty());
|
|
|
+ applicantInfoDTO.setApplicantTel(policyHolderInfo.getTelephone());
|
|
|
+ }
|
|
|
+
|
|
|
+ //新能源测试使用
|
|
|
+// applicantInfoDTO.setApplicantCCertfCde("E88888888");
|
|
|
+// applicantInfoDTO.setApplicantCCertfCls("02");
|
|
|
+
|
|
|
+ //通讯地址
|
|
|
+ applicantInfoDTO.setApplicantClntAddr(policyHolderInfo.getAddr());
|
|
|
+ //手机号
|
|
|
+ applicantInfoDTO.setApplicantMobile(policyHolderInfo.getMobile());
|
|
|
+ //邮箱号
|
|
|
+ applicantInfoDTO.setApplicantEmail(policyHolderInfo.getEmail());
|
|
|
+ //投保人姓名
|
|
|
+ applicantInfoDTO.setApplicantNme(policyHolderInfo.getName());
|
|
|
+
|
|
|
+ //邮编
|
|
|
+// vehicleOwnerInfoDTO.setVehicleOwnerCZipCde(quoteInfoVo.getOwnerInfo().get)
|
|
|
+ //证件生效日期
|
|
|
+ applicantInfoDTO.setApplicantTEffectiveDate(policyHolderInfo.getIdentifyValidDate());
|
|
|
+ //证件失效日期
|
|
|
+ applicantInfoDTO.setApplicantTExpiredDate(policyHolderInfo.getIdentifyValidEndDate());
|
|
|
+ //证件上地址
|
|
|
+ applicantInfoDTO.setApplicantHomeAddr(policyHolderInfo.getAddr());
|
|
|
+ //国籍
|
|
|
+// applicantInfoDTO.set(1);
|
|
|
+
|
|
|
+ int index = -1;
|
|
|
+ if (policyHolderPersonArea.getCountyName() != null) {
|
|
|
+ index = policyHolderInfo.getAddr().indexOf(policyHolderPersonArea.getCountyName());
|
|
|
+ }
|
|
|
+ if (index > -1) {
|
|
|
+ applicantInfoDTO.setApplicantSuffixAddr(policyHolderInfo.getAddr().substring(index + policyHolderPersonArea.getCountyName().length()));
|
|
|
+ } else {
|
|
|
+ applicantInfoDTO.setApplicantSuffixAddr(policyHolderInfo.getAddr());
|
|
|
+ }
|
|
|
+// applicantInfoDTO.setApplicantZipCde("030024");
|
|
|
+ this.body.setApplicantInfo(applicantInfoDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ //设置被保人信息
|
|
|
+ public void setInsuredInfo(QuoteVo quoteInfoVo, PersonAreaVo insuredPersonArea) {
|
|
|
+ BodyDTO.InsuredInfoDTO insuredInfoDTO = new BodyDTO.InsuredInfoDTO();
|
|
|
+ CustomerInfoVo insuredPersonInfo = quoteInfoVo.getInsuredPersonInfo();
|
|
|
+ if(StringUtils.isBlank(insuredPersonInfo.getProperty()) || !"0".equals(insuredPersonInfo.getProperty())) {
|
|
|
+ //设置证件号码
|
|
|
+ insuredInfoDTO.setInsuredCertfCde(insuredPersonInfo.getIdentifyNumber());
|
|
|
+ //设置证件类型
|
|
|
+ insuredInfoDTO.setInsuredCertfCls("01");
|
|
|
+ //客户类型
|
|
|
+ insuredInfoDTO.setInsuredClntMrk(COwnerCls.CLS1.getCode());
|
|
|
+ //被保人出生日期
|
|
|
+ insuredInfoDTO.setInsuredTBirthday(getBirthdateFromIDCardNumber(insuredPersonInfo.getIdentifyNumber()));
|
|
|
+ //被保人性别
|
|
|
+ insuredInfoDTO.setInsuredSex(getSexFromIdCardNumber(insuredPersonInfo.getIdentifyNumber()));
|
|
|
+ //省市县
|
|
|
+ insuredInfoDTO.setInsuredProvince(insuredPersonArea.getProvinceCode());
|
|
|
+ insuredInfoDTO.setInsuredCity(insuredPersonArea.getCityCode());
|
|
|
+ insuredInfoDTO.setInsuredCounty(insuredPersonArea.getCountyCode());
|
|
|
+ }else{
|
|
|
+ //设置证件号码
|
|
|
+ insuredInfoDTO.setInsuredCertfCde(insuredPersonInfo.getOrganizationCode());
|
|
|
+ //设置证件类型
|
|
|
+ insuredInfoDTO.setInsuredCertfCls("04");
|
|
|
+ //客户类型
|
|
|
+ insuredInfoDTO.setInsuredClntMrk(COwnerCls.CLS3.getCode());
|
|
|
+ //省市县
|
|
|
+ insuredInfoDTO.setInsuredProvince(insuredPersonInfo.getProvince());
|
|
|
+ insuredInfoDTO.setInsuredCity(insuredPersonInfo.getCity());
|
|
|
+ insuredInfoDTO.setInsuredCounty(insuredPersonInfo.getCounty());
|
|
|
+ insuredInfoDTO.setInsuredTel(insuredPersonInfo.getTelephone());
|
|
|
+ }
|
|
|
+
|
|
|
+ //新能源测试使用
|
|
|
+// insuredInfoDTO.setInsuredCertfCde("E88888888");
|
|
|
+// insuredInfoDTO.setInsuredCertfCls("02");
|
|
|
+
|
|
|
+ //通讯地址
|
|
|
+ insuredInfoDTO.setInsuredClntAddr(insuredPersonInfo.getAddr());
|
|
|
+ //证件上地址
|
|
|
+ insuredInfoDTO.setInsuredHomeAddr(insuredPersonInfo.getAddr());
|
|
|
+ //居住地址
|
|
|
+ insuredInfoDTO.setInsuredResidAddr(insuredPersonInfo.getAddr());
|
|
|
+ //手机号
|
|
|
+ insuredInfoDTO.setInsuredMobile(insuredPersonInfo.getMobile());
|
|
|
+ //邮箱号
|
|
|
+ insuredInfoDTO.setInsuredEmail(insuredPersonInfo.getEmail());
|
|
|
+ //被保人姓名
|
|
|
+ insuredInfoDTO.setInsuredNme(insuredPersonInfo.getName());
|
|
|
+ //身份证生效日期
|
|
|
+ insuredInfoDTO.setInsuredTEffectiveDate(insuredPersonInfo.getIdentifyValidDate());
|
|
|
+ //身份证失效日期
|
|
|
+ insuredInfoDTO.setInsuredTExpiredDate(insuredPersonInfo.getIdentifyValidEndDate());
|
|
|
+
|
|
|
+ insuredInfoDTO.setInsuredSuffixAddr(insuredPersonInfo.getAddr());
|
|
|
+ int index = -1;
|
|
|
+ if (insuredPersonArea.getCountyName() != null) {
|
|
|
+ index = insuredPersonInfo.getAddr().indexOf(insuredPersonArea.getCountyName());
|
|
|
+ }
|
|
|
+ if (index > -1) {
|
|
|
+ insuredInfoDTO.setInsuredSuffixAddr(insuredPersonInfo.getAddr().substring(index + insuredPersonArea.getCountyName().length()));
|
|
|
+ } else {
|
|
|
+ insuredInfoDTO.setInsuredSuffixAddr(insuredPersonInfo.getAddr());
|
|
|
+ }
|
|
|
+ //邮编
|
|
|
+// insuredInfoDTO.setInsuredZipCde("030024");
|
|
|
+ this.body.setInsuredInfo(insuredInfoDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ //设置车辆信息
|
|
|
+ public void setVehicleInfo(QuoteVo quoteVo, ODR2009Response odr2009Response) {
|
|
|
+ BodyDTO.VehicleInfoDTO vehicleInfoDTO = new BodyDTO.VehicleInfoDTO();
|
|
|
+ //设置发动机号
|
|
|
+ vehicleInfoDTO.setVehicleEngNo(quoteVo.getCarInfoVo().getEngineNo());
|
|
|
+ //设置车架号
|
|
|
+ vehicleInfoDTO.setVehicleFrmNo(quoteVo.getCarInfoVo().getVinNo());
|
|
|
+ //是否是过户车
|
|
|
+ if (quoteVo.getCarInfoVo().isTransfer()) {
|
|
|
+ //过户
|
|
|
+ vehicleInfoDTO.setVehicleTfiSpecialMrk(1);
|
|
|
+ vehicleInfoDTO.setVehicleTransferTm(quoteVo.getCarInfoVo().getTransferDate());
|
|
|
+ //商业过户标志
|
|
|
+ vehicleInfoDTO.setVehicleChgOwnerFlag(1);
|
|
|
+ vehicleInfoDTO.setVehicleTTransferDate(quoteVo.getCarInfoVo().getTransferDate());
|
|
|
+ } else {
|
|
|
+ //没有过户
|
|
|
+ vehicleInfoDTO.setVehicleTfiSpecialMrk(0);
|
|
|
+ //商业过户标志
|
|
|
+ vehicleInfoDTO.setVehicleChgOwnerFlag(0);
|
|
|
+ }
|
|
|
+ //初登日期
|
|
|
+ vehicleInfoDTO.setVehicleFstRegYmBar(quoteVo.getCarInfoVo().getRegisterDate());
|
|
|
+ //能源类型
|
|
|
+ String EnergyType = quoteVo.getCarInfoVo().getEnergyTypeCode();
|
|
|
+ vehicleInfoDTO.setVehicleFuelType(EnergyType);
|
|
|
+ //行驶证车辆类型
|
|
|
+ vehicleInfoDTO.setVehicleRegVhlTyp(quoteVo.getCarInfoVo().getCarTypeCode());
|
|
|
+ //交强险特殊车标志
|
|
|
+
|
|
|
+ //使用性质
|
|
|
+
|
|
|
+
|
|
|
+ RiskInfoVo ciRiskInfoVo = quoteVo.getCiRiskInfoVo();
|
|
|
+ RiskInfoVo biRiskInfoVo = quoteVo.getBiRiskInfoVo();
|
|
|
+ //运营性质
|
|
|
+ String vehicleUse = quoteVo.getCarInfoVo().getVehicleUseCode();
|
|
|
+ TypeVehicleMapping typeVehicleMapping = Enum.valueOf(TypeVehicleMapping.class, "TM_" + vehicleUse);
|
|
|
+ if (Objects.nonNull(ciRiskInfoVo)) {
|
|
|
+ vehicleInfoDTO.setVehicleUsageCde(typeVehicleMapping.getCUsageCdeSy());
|
|
|
+ vehicleInfoDTO.setVehicleTraUsageCde(Integer.valueOf(typeVehicleMapping.getCUsageCdeSy()));
|
|
|
+ }else if(Objects.nonNull(biRiskInfoVo)){
|
|
|
+ vehicleInfoDTO.setVehicleUsageCde(typeVehicleMapping.getCUsageCdeJq());
|
|
|
+ vehicleInfoDTO.setVehicleTraUsageCde(Integer.valueOf(typeVehicleMapping.getCUsageCdeJq()));
|
|
|
+ }
|
|
|
+
|
|
|
+ //特殊风险标识
|
|
|
+
|
|
|
+ //是否上牌
|
|
|
+ if (StringUtils.isBlank(quoteVo.getCarInfoVo().getLicenseNo())) {
|
|
|
+ //上牌车
|
|
|
+ vehicleInfoDTO.setVehicleNewPlate(0);
|
|
|
+ vehicleInfoDTO.setVehicleNewMrk(0);
|
|
|
+ //车牌号
|
|
|
+ vehicleInfoDTO.setVehiclePlateNo(quoteVo.getCarInfoVo().getLicenseNo());
|
|
|
+ //车牌种类
|
|
|
+ vehicleInfoDTO.setVehiclePlateTyp("02");
|
|
|
+
|
|
|
+ //是否为外地车
|
|
|
+ vehicleInfoDTO.setVehicleEcdemicMrk(quoteVo.getCarInfoVo().getLicenseNo().contains("晋") ? "0" : "1");
|
|
|
+ } else {
|
|
|
+ //新车
|
|
|
+ vehicleInfoDTO.setVehicleNewPlate(1);
|
|
|
+ vehicleInfoDTO.setVehicleNewMrk(1);
|
|
|
+ }
|
|
|
+
|
|
|
+ boolean consistentPrice = false;
|
|
|
+ ODR2009Response.ResultDTO resultDTO = new ODR2009Response.ResultDTO();
|
|
|
+ for (ODR2009Response.ResultDTO item : odr2009Response.getResult()) {
|
|
|
+ if (item.getVehiclePrice().equals(quoteVo.getCarInfoVo().getPurchasePrice())) {
|
|
|
+ consistentPrice = true;
|
|
|
+ resultDTO = item;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!consistentPrice) {
|
|
|
+ resultDTO = odr2009Response.getResult().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 设置报价车型
|
|
|
+
|
|
|
+ //厂牌车型码
|
|
|
+ vehicleInfoDTO.setVehicleModelCde(resultDTO.getVehicleId());
|
|
|
+ //新车购置价
|
|
|
+ vehicleInfoDTO.setVehicleNNewPurchaseValue(resultDTO.getVehiclePriceTax());
|
|
|
+ //车型名称
|
|
|
+ vehicleInfoDTO.setVehicleModelNme(resultDTO.getVehicleName());
|
|
|
+ //排气量
|
|
|
+ vehicleInfoDTO.setVehicleNDisplacement(resultDTO.getVehicleExhaust());
|
|
|
+
|
|
|
+// vehicleInfoDTO.setVehicleNDisplacement("1.0");
|
|
|
+ //功率
|
|
|
+ if (resultDTO.getPower() == null) {
|
|
|
+ if (quoteVo.getCarInfoVo().getPowerScale() != null && !"".equals(quoteVo.getCarInfoVo().getPowerScale())) {
|
|
|
+ vehicleInfoDTO.setVehicleNPower(Double.parseDouble(quoteVo.getCarInfoVo().getPowerScale()));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ vehicleInfoDTO.setVehicleNPower(Double.parseDouble(resultDTO.getPower()));
|
|
|
+ }
|
|
|
+ //座位数
|
|
|
+ vehicleInfoDTO.setVehicleNSeatNum(quoteVo.getCarInfoVo().getSeatCount());
|
|
|
+ //车辆种类
|
|
|
+ if (VehicleType.VT_A0.getCode().equals(quoteVo.getCarInfoVo().getCarKindCode())) {
|
|
|
+ //客车
|
|
|
+ if (Integer.parseInt(resultDTO.getVehicleSeat()) < 6) {
|
|
|
+ vehicleInfoDTO.setVehicleVhlTyp(CVhlTyp.T01.getCode().toString());
|
|
|
+ } else {
|
|
|
+ vehicleInfoDTO.setVehicleVhlTyp(CVhlTyp.T02.getCode().toString());
|
|
|
+ }
|
|
|
+ } else if (VehicleType.VT_A1.getCode().equals(quoteVo.getCarInfoVo().getCarKindCode())) {
|
|
|
+ //货车
|
|
|
+ float limitLoad = Float.parseFloat(quoteVo.getCarInfoVo().getLimitLoad()) / 1000;
|
|
|
+ if (limitLoad < 2) {
|
|
|
+ vehicleInfoDTO.setVehicleVhlTyp(CVhlTyp.T06.getCode().toString());
|
|
|
+ } else if (limitLoad >= 2 && limitLoad < 5) {
|
|
|
+ vehicleInfoDTO.setVehicleVhlTyp(CVhlTyp.T07.getCode().toString());
|
|
|
+ } else if (limitLoad >= 5 && limitLoad < 10) {
|
|
|
+ vehicleInfoDTO.setVehicleVhlTyp(CVhlTyp.T08.getCode().toString());
|
|
|
+ } else if (limitLoad >= 10) {
|
|
|
+ vehicleInfoDTO.setVehicleVhlTyp(CVhlTyp.T09.getCode().toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //车辆品牌
|
|
|
+ vehicleInfoDTO.setVehicleBrandId(resultDTO.getBrandId());
|
|
|
+ //整备质量
|
|
|
+ vehicleInfoDTO.setVehicleNCurbWt(Float.parseFloat(quoteVo.getCarInfoVo().getCompleteKerbMass()) / 1000);
|
|
|
+ //货车传递吨位
|
|
|
+ if (VehicleType.VT_A1.getCode().equals(quoteVo.getCarInfoVo().getCarKindCode())) {
|
|
|
+ //核定载质量
|
|
|
+ vehicleInfoDTO.setVehicleNTonage(Double.parseDouble(quoteVo.getCarInfoVo().getLimitLoad()) / 1000);
|
|
|
+ }
|
|
|
+
|
|
|
+ //验车情况
|
|
|
+ vehicleInfoDTO.setVehicleInspectionCde(CInspectionCde.INS3.getCode().toString());
|
|
|
+ //免验原因
|
|
|
+ vehicleInfoDTO.setVehicleResvTxt1(CResvTxt.RESC1.getCode().toString());
|
|
|
+ this.body.setVehicleInfo(vehicleInfoDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ //设置业务归属信息
|
|
|
+ public void setBusinessInfo(DaJiaApiConfigureParameters daJiaConfigureParameters, String busiId) {
|
|
|
+ BodyDTO.BusinessInfoDTO businessInfoDTO = new BodyDTO.BusinessInfoDTO();
|
|
|
+ //设置id
|
|
|
+ businessInfoDTO.setBusiId(busiId);
|
|
|
+ //设置登录机构
|
|
|
+ businessInfoDTO.setBusiOpdpt(daJiaConfigureParameters.getLoginInstitution());
|
|
|
+ //设置出单口
|
|
|
+ businessInfoDTO.setBusiDptCde(daJiaConfigureParameters.getIssuingInstitution());
|
|
|
+ //设置代理人编码
|
|
|
+ businessInfoDTO.setBusiBrkrCde(daJiaConfigureParameters.getAgentCode());
|
|
|
+ //设置操作员代码
|
|
|
+ businessInfoDTO.setBusiOprCde(daJiaConfigureParameters.getOperatorCode());
|
|
|
+ //设置操作员姓名
|
|
|
+ businessInfoDTO.setBusiOprNme(daJiaConfigureParameters.getOperatorName());
|
|
|
+ //设置业务来源
|
|
|
+ businessInfoDTO.setBusiBsnsTyp(daJiaConfigureParameters.getBusinessSource());
|
|
|
+ //设置业务员代码
|
|
|
+ businessInfoDTO.setBusiSlsCde(daJiaConfigureParameters.getSalespersonCode());
|
|
|
+ //设置推荐人代码
|
|
|
+ businessInfoDTO.setBusiRecommendCde(daJiaConfigureParameters.getRecommendedCode());
|
|
|
+ //设置推荐人渠道
|
|
|
+ businessInfoDTO.setBusiRecSubChannel(daJiaConfigureParameters.getRecommendedSubChannels());
|
|
|
+ //设置渠道
|
|
|
+// businessInfoDTO.setBusiChannelSrc(CChannelSrc.CHANNEL0.getCode().toString());
|
|
|
+ //准生产环境测试
|
|
|
+ businessInfoDTO.setBusiChannelSrc(daJiaConfigureParameters.getChannel());
|
|
|
+ //设置一级来源
|
|
|
+ businessInfoDTO.setBusiDataSrc("G");
|
|
|
+ //设置二级来源
|
|
|
+ businessInfoDTO.setBusiDataFlag("TQBD");
|
|
|
+
|
|
|
+ this.body.setBusinessInfo(businessInfoDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|