|
|
@@ -0,0 +1,572 @@
|
|
|
+package com.jzg.quote.bohai.api.entity.request;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.jzg.commons.util.IDCardUtils;
|
|
|
+import com.jzg.commons.util.StringUtils;
|
|
|
+import com.jzg.quotation.commons.entity.vo.aggregated.QuoteVo;
|
|
|
+import com.jzg.quotation.commons.entity.vo.quote.CarInfoVo;
|
|
|
+import com.jzg.quotation.commons.entity.vo.quote.CustomerInfoVo;
|
|
|
+import com.jzg.quotation.commons.entity.vo.quote.RiskInfoVo;
|
|
|
+import com.jzg.quote.bohai.api.constant.enums.*;
|
|
|
+import com.jzg.quote.bohai.api.entity.BoHaiConfigureParameters;
|
|
|
+import com.jzg.quote.bohai.api.entity.response.VehicleTypeQueryResponse;
|
|
|
+import com.jzg.quote.bohai.api.entity.vo.PersonAreaVo;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+import java.io.Serial;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description: 渤海财险 车辆确认请求接口
|
|
|
+ * @author: shenwd
|
|
|
+ * @date: 2025/3/3 16:53
|
|
|
+ **/
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@NoArgsConstructor
|
|
|
+@Data
|
|
|
+public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
|
|
|
+
|
|
|
+ @Serial
|
|
|
+ private static final long serialVersionUID = 5738667931387435773L;
|
|
|
+ @JsonProperty("vehicle")
|
|
|
+ private VehicleDTO vehicle;
|
|
|
+
|
|
|
+ @JsonProperty("carOwner")
|
|
|
+ private CarOwnerDTO carOwner;
|
|
|
+
|
|
|
+ @JsonProperty("holder")
|
|
|
+ private HolderDTO holder;
|
|
|
+
|
|
|
+ @JsonProperty("insureder")
|
|
|
+ private InsurederDTO insureder;
|
|
|
+
|
|
|
+
|
|
|
+ public VehicleConfirmationReqeust(BoHaiConfigureParameters parameters, QuoteVo quoteVo,
|
|
|
+ VehicleTypeQueryResponse.DataDTO.VehicleModelsDTO vehicleModelsDTO,
|
|
|
+ String orderNo, PersonAreaVo ownerInfoArea, PersonAreaVo insuredPersonArea,
|
|
|
+ PersonAreaVo policyHolderArea) {
|
|
|
+ String effectDate;
|
|
|
+ if (quoteVo.getBiRiskInfoVo() != null) {
|
|
|
+ effectDate = quoteVo.getBiRiskInfoVo().getStartDate();
|
|
|
+ } else {
|
|
|
+ effectDate = quoteVo.getCiRiskInfoVo().getStartDate();
|
|
|
+ }
|
|
|
+
|
|
|
+ this.setBaseParam(parameters, orderNo);
|
|
|
+ // 车辆信息
|
|
|
+ CarInfoVo carInfo = quoteVo.getCarInfoVo();
|
|
|
+ this.vehicle = new VehicleDTO(carInfo, vehicleModelsDTO, effectDate);
|
|
|
+ // 车主
|
|
|
+ CustomerInfoVo ownersInfo = quoteVo.getOwnersInfo();
|
|
|
+ this.carOwner = new CarOwnerDTO(ownersInfo, ownerInfoArea);
|
|
|
+ // 投保人
|
|
|
+ CustomerInfoVo policyHolderInfo = quoteVo.getPolicyHolderInfo();
|
|
|
+ this.holder = new HolderDTO(policyHolderInfo, policyHolderArea);
|
|
|
+ // 被保人
|
|
|
+ CustomerInfoVo insuredPersonInfo = quoteVo.getInsuredPersonInfo();
|
|
|
+ this.insureder = new InsurederDTO(insuredPersonInfo, insuredPersonArea);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class VehicleDTO implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = -2343894775576071422L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车辆识别代号/车架号
|
|
|
+ */
|
|
|
+ @JsonProperty("carVin")
|
|
|
+ private String carVin;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车型编码
|
|
|
+ */
|
|
|
+ @JsonProperty("vehicleModelCode")
|
|
|
+ private String vehicleModelCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发动机号
|
|
|
+ */
|
|
|
+ @JsonProperty("engineNo")
|
|
|
+ private String engineNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 号牌号码
|
|
|
+ */
|
|
|
+ @JsonProperty("plateNo")
|
|
|
+ private String plateNo;
|
|
|
+
|
|
|
+ @JsonProperty("licenseType")
|
|
|
+ private String licenseType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 初登日期
|
|
|
+ */
|
|
|
+ @JsonProperty("registerDate")
|
|
|
+ private String registerDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 指导价格
|
|
|
+ */
|
|
|
+ @JsonProperty("purchasePrice")
|
|
|
+ private String purchasePrice;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否新车
|
|
|
+ */
|
|
|
+ @JsonProperty("newVehicleFlag")
|
|
|
+ private String newVehicleFlag;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车型名称 (品牌型号)
|
|
|
+ */
|
|
|
+ @JsonProperty("moldName")
|
|
|
+ private String moldName;
|
|
|
+
|
|
|
+ @JsonProperty("modelCode")
|
|
|
+ private String modelCode;
|
|
|
+ /**
|
|
|
+ * 座位数
|
|
|
+ */
|
|
|
+ @JsonProperty("seatCount")
|
|
|
+ private String seatCount;
|
|
|
+
|
|
|
+
|
|
|
+ @JsonProperty("purchaseinvoicesDate")
|
|
|
+ private String purchaseinvoicesDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 核定载质量(KG)
|
|
|
+ */
|
|
|
+ @JsonProperty("tonNumber")
|
|
|
+ private String tonNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 燃料类型
|
|
|
+ */
|
|
|
+ @JsonProperty("fuelType")
|
|
|
+ private String fuelType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 整备质量(KG)
|
|
|
+ */
|
|
|
+ @JsonProperty("emptyWeight")
|
|
|
+ private String emptyWeight;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保险起期
|
|
|
+ */
|
|
|
+ @JsonProperty("effectDate")
|
|
|
+ private String effectDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 排气量(L)
|
|
|
+ */
|
|
|
+ @JsonProperty("exhaustMeasure")
|
|
|
+ private String exhaustMeasure;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车辆种类
|
|
|
+ */
|
|
|
+ @JsonProperty("vehicleKind")
|
|
|
+ private String vehicleKind;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车辆所属性质
|
|
|
+ */
|
|
|
+ @JsonProperty("vehicleAffNature")
|
|
|
+ private String vehicleAffNature;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车辆使用性质
|
|
|
+ */
|
|
|
+ @JsonProperty("vehicleUsage")
|
|
|
+ private String vehicleUsage;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车辆使用性质细分
|
|
|
+ */
|
|
|
+ @JsonProperty("vehicleUsageDetail")
|
|
|
+ private String vehicleUsageDetail;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否过户
|
|
|
+ */
|
|
|
+ @JsonProperty("isTransfer")
|
|
|
+ private String isTransfer;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 过户日期
|
|
|
+ */
|
|
|
+ @JsonProperty("transferDate")
|
|
|
+ private String transferDate;
|
|
|
+
|
|
|
+ @JsonProperty("vehicleTypeOfDrivingPermit")
|
|
|
+ private String vehicleTypeOfDrivingPermit;
|
|
|
+
|
|
|
+ @JsonProperty("secondHandVehicleFlag")
|
|
|
+ private String secondHandVehicleFlag;
|
|
|
+
|
|
|
+
|
|
|
+ public VehicleDTO(CarInfoVo carInfo, VehicleTypeQueryResponse.DataDTO.VehicleModelsDTO vehicleModelsDTO, String effectDate) {
|
|
|
+ this.carVin = carInfo.getVinNo();
|
|
|
+ this.vehicleModelCode = vehicleModelsDTO.getVehicleModelCode();
|
|
|
+ this.engineNo = carInfo.getEngineNo();
|
|
|
+ this.plateNo = carInfo.getLicenseNo();
|
|
|
+ this.licenseType = "02";
|
|
|
+ this.registerDate = carInfo.getRegisterDate();
|
|
|
+ this.purchasePrice = vehicleModelsDTO.getPurchasePrice();
|
|
|
+ // 新车
|
|
|
+ this.newVehicleFlag = StringUtils.isNotEmpty(carInfo.getLicenseNo()) ? "0" : "1";
|
|
|
+ this.moldName = vehicleModelsDTO.getMoldName();
|
|
|
+ this.modelCode = vehicleModelsDTO.getModelCode();
|
|
|
+
|
|
|
+ this.seatCount = carInfo.getSeatCount();
|
|
|
+ this.tonNumber = StringUtils.isEmpty(carInfo.getLimitLoad()) ? "0": carInfo.getLimitLoad();
|
|
|
+ this.fuelType = carInfo.getEnergyTypeCode();
|
|
|
+ this.emptyWeight = carInfo.getCompleteKerbMass();
|
|
|
+ this.exhaustMeasure = vehicleModelsDTO.getExhaustMeasure();
|
|
|
+ VehicleKind vehicleKindEnum = VehicleKind.valueOf("VK_" + carInfo.getCarKindCode());
|
|
|
+ this.effectDate = effectDate;
|
|
|
+ this.vehicleKind = vehicleKindEnum.getCode();
|
|
|
+ this.vehicleAffNature = VehicleAffNature.VAN_1.getCode();
|
|
|
+ // 车辆使用性质
|
|
|
+ VehicleUsage vehicleUsageEnum = VehicleUsage.valueOf("VU_" + carInfo.getCarNatureCode());
|
|
|
+ this.vehicleUsage = vehicleUsageEnum.getCode();
|
|
|
+ // 车辆用途
|
|
|
+ VehicleUsageDetail vehicleUsageDetailEnum = VehicleUsageDetail.valueOf("VUD_" + carInfo.getVehicleUseCode());
|
|
|
+ this.vehicleUsageDetail = vehicleUsageDetailEnum.getCode();
|
|
|
+ this.isTransfer = carInfo.isTransfer() ? "1" : "0";
|
|
|
+ this.transferDate = carInfo.getTransferDate();
|
|
|
+
|
|
|
+ this.vehicleTypeOfDrivingPermit = carInfo.getCarTypeCode();
|
|
|
+ this.secondHandVehicleFlag = "0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class CarOwnerDTO implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 8709315851618789033L;
|
|
|
+
|
|
|
+ @JsonProperty("certType")
|
|
|
+ private String certType;
|
|
|
+
|
|
|
+ @JsonProperty("ownerName")
|
|
|
+ private String ownerName;
|
|
|
+
|
|
|
+ @JsonProperty("certNo")
|
|
|
+ private String certNo;
|
|
|
+
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ @JsonProperty("phoneNumber")
|
|
|
+ private String phoneNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 客户类型
|
|
|
+ */
|
|
|
+ @JsonProperty("customerType")
|
|
|
+ private String customerType;
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @JsonProperty("certiType")
|
|
|
+ private String certiType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 邮箱
|
|
|
+ */
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+ /**
|
|
|
+ * 省份代码
|
|
|
+ */
|
|
|
+ @JsonProperty("provCode")
|
|
|
+ private String provCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 省份名称
|
|
|
+ */
|
|
|
+ @JsonProperty("provName")
|
|
|
+ private String provName;
|
|
|
+ /**
|
|
|
+ * 城市代码
|
|
|
+ */
|
|
|
+ @JsonProperty("cityCode")
|
|
|
+ private String cityCode;
|
|
|
+ /**
|
|
|
+ * 城市名称
|
|
|
+ */
|
|
|
+ @JsonProperty("cityName")
|
|
|
+ private String cityName;
|
|
|
+ /**
|
|
|
+ * 区县代码
|
|
|
+ */
|
|
|
+ @JsonProperty("distCode")
|
|
|
+ private String distCode;
|
|
|
+ /**
|
|
|
+ * 区县名称
|
|
|
+ */
|
|
|
+ @JsonProperty("distName")
|
|
|
+ private String distName;
|
|
|
+
|
|
|
+ @JsonProperty("residentialAddress")
|
|
|
+ private String residentialAddress;
|
|
|
+
|
|
|
+ @JsonProperty("birthday")
|
|
|
+ private String birthday;
|
|
|
+
|
|
|
+ public CarOwnerDTO(CustomerInfoVo ownerInfo, PersonAreaVo ownerInfoArea) {
|
|
|
+ this.certType = CertType.CT_111.getCode();
|
|
|
+ this.ownerName = ownerInfo.getName();
|
|
|
+ this.certNo = ownerInfo.getIdentifyNumber();
|
|
|
+ this.address = ownerInfo.getAddr();
|
|
|
+ this.phoneNumber = ownerInfo.getMobile();
|
|
|
+ this.customerType = CustomerType.CT_2.getCode();
|
|
|
+ this.email = ownerInfo.getEmail();
|
|
|
+ this.certiType = ownerInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
|
|
|
+ this.residentialAddress = ownerInfo.getAddr();
|
|
|
+ this.provCode = ownerInfoArea.getProvinceCode();
|
|
|
+ this.provName = ownerInfoArea.getProvinceName();
|
|
|
+ this.cityCode = ownerInfoArea.getCityCode();
|
|
|
+ this.cityName = ownerInfoArea.getCityName();
|
|
|
+ this.distCode = ownerInfoArea.getCountyCode();
|
|
|
+ this.distName = ownerInfoArea.getCountyName();
|
|
|
+ this.birthday = IDCardUtils.GetBirthday(ownerInfo.getIdentifyNumber());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class HolderDTO implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = -2088635630636574306L;
|
|
|
+
|
|
|
+ @JsonProperty("certType")
|
|
|
+ private String certType;
|
|
|
+
|
|
|
+ @JsonProperty("holderName")
|
|
|
+ private String holderName;
|
|
|
+
|
|
|
+ @JsonProperty("certNo")
|
|
|
+ private String certNo;
|
|
|
+
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ @JsonProperty("phoneNumber")
|
|
|
+ private String phoneNumber;
|
|
|
+
|
|
|
+ @JsonProperty("nation")
|
|
|
+ private String nation;
|
|
|
+
|
|
|
+ @JsonProperty("certiStartDate")
|
|
|
+ private String certiStartDate;
|
|
|
+
|
|
|
+ @JsonProperty("certiEndDate")
|
|
|
+ private String certiEndDate;
|
|
|
+
|
|
|
+ @JsonProperty("certiType")
|
|
|
+ private String certiType;
|
|
|
+
|
|
|
+ @JsonProperty("issuer")
|
|
|
+ private String issuer;
|
|
|
+
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+
|
|
|
+ @JsonProperty("invoiceType")
|
|
|
+ private String invoiceType;
|
|
|
+
|
|
|
+ @JsonProperty("bizFormatType")
|
|
|
+ private String bizFormatType;
|
|
|
+
|
|
|
+ @JsonProperty("forceFormatType")
|
|
|
+ private String forceFormatType;
|
|
|
+
|
|
|
+ @JsonProperty("elecApplicationFlag")
|
|
|
+ private String elecApplicationFlag;
|
|
|
+
|
|
|
+ @JsonProperty("customerType")
|
|
|
+ private String customerType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 省份代码
|
|
|
+ */
|
|
|
+ @JsonProperty("provCode")
|
|
|
+ private String provCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 省份名称
|
|
|
+ */
|
|
|
+ @JsonProperty("provName")
|
|
|
+ private String provName;
|
|
|
+ /**
|
|
|
+ * 城市代码
|
|
|
+ */
|
|
|
+ @JsonProperty("cityCode")
|
|
|
+ private String cityCode;
|
|
|
+ /**
|
|
|
+ * 城市名称
|
|
|
+ */
|
|
|
+ @JsonProperty("cityName")
|
|
|
+ private String cityName;
|
|
|
+ /**
|
|
|
+ * 区县代码
|
|
|
+ */
|
|
|
+ @JsonProperty("distCode")
|
|
|
+ private String distCode;
|
|
|
+ /**
|
|
|
+ * 区县名称
|
|
|
+ */
|
|
|
+ @JsonProperty("distName")
|
|
|
+ private String distName;
|
|
|
+
|
|
|
+ @JsonProperty("residentialAddress")
|
|
|
+ private String residentialAddress;
|
|
|
+
|
|
|
+ @JsonProperty("birthday")
|
|
|
+ private String birthday;
|
|
|
+
|
|
|
+ public HolderDTO(CustomerInfoVo policyHolderInfo, PersonAreaVo policyHolderArea) {
|
|
|
+ // 通用参数
|
|
|
+ this.certType = CertType.CT_111.getCode();
|
|
|
+ this.holderName = policyHolderInfo.getName();
|
|
|
+ this.certNo = policyHolderInfo.getIdentifyNumber();
|
|
|
+ this.address = policyHolderInfo.getAddr();
|
|
|
+ this.phoneNumber = policyHolderInfo.getMobile();
|
|
|
+ this.customerType = CustomerType.CT_2.getCode();
|
|
|
+ this.email = policyHolderInfo.getEmail();
|
|
|
+ this.certiType = policyHolderInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
|
|
|
+
|
|
|
+ // 个别参数
|
|
|
+ this.invoiceType = InvoiceType.IT_1.getCode();
|
|
|
+ this.bizFormatType = FormatType.FT_1.getCode();
|
|
|
+ this.forceFormatType = FormatType.FT_1.getCode();
|
|
|
+
|
|
|
+ // 省市县
|
|
|
+ this.provCode = policyHolderArea.getProvinceCode();
|
|
|
+ this.provName = policyHolderArea.getProvinceName();
|
|
|
+ this.cityCode = policyHolderArea.getCityCode();
|
|
|
+ this.cityName = policyHolderArea.getCityName();
|
|
|
+ this.distCode = policyHolderArea.getCountyCode();
|
|
|
+ this.distName = policyHolderArea.getCountyName();
|
|
|
+
|
|
|
+ this.residentialAddress = policyHolderInfo.getAddr();
|
|
|
+ this.birthday = IDCardUtils.GetBirthday(policyHolderInfo.getIdentifyNumber());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class InsurederDTO implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1045840175935280892L;
|
|
|
+
|
|
|
+ @JsonProperty("certType")
|
|
|
+ private String certType;
|
|
|
+
|
|
|
+ @JsonProperty("insuredName")
|
|
|
+ private String insuredName;
|
|
|
+
|
|
|
+ @JsonProperty("certNo")
|
|
|
+ private String certNo;
|
|
|
+
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ @JsonProperty("phoneNumber")
|
|
|
+ private String phoneNumber;
|
|
|
+
|
|
|
+ @JsonProperty("nation")
|
|
|
+ private String nation;
|
|
|
+
|
|
|
+ @JsonProperty("certiStartDate")
|
|
|
+ private String certiStartDate;
|
|
|
+
|
|
|
+ @JsonProperty("certiEndDate")
|
|
|
+ private String certiEndDate;
|
|
|
+
|
|
|
+ @JsonProperty("certiType")
|
|
|
+ private String certiType;
|
|
|
+
|
|
|
+ @JsonProperty("customerType")
|
|
|
+ private String customerType;
|
|
|
+
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 省份代码
|
|
|
+ */
|
|
|
+ @JsonProperty("provCode")
|
|
|
+ private String provCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 省份名称
|
|
|
+ */
|
|
|
+ @JsonProperty("provName")
|
|
|
+ private String provName;
|
|
|
+ /**
|
|
|
+ * 城市代码
|
|
|
+ */
|
|
|
+ @JsonProperty("cityCode")
|
|
|
+ private String cityCode;
|
|
|
+ /**
|
|
|
+ * 城市名称
|
|
|
+ */
|
|
|
+ @JsonProperty("cityName")
|
|
|
+ private String cityName;
|
|
|
+ /**
|
|
|
+ * 区县代码
|
|
|
+ */
|
|
|
+ @JsonProperty("distCode")
|
|
|
+ private String distCode;
|
|
|
+ /**
|
|
|
+ * 区县名称
|
|
|
+ */
|
|
|
+ @JsonProperty("distName")
|
|
|
+ private String distName;
|
|
|
+
|
|
|
+ @JsonProperty("residentialAddress")
|
|
|
+ private String residentialAddress;
|
|
|
+
|
|
|
+
|
|
|
+ @JsonProperty("birthday")
|
|
|
+ private String birthday;
|
|
|
+
|
|
|
+ public InsurederDTO(CustomerInfoVo insuredPersonInfo, PersonAreaVo insuredPersonArea) {
|
|
|
+ // 通用参数
|
|
|
+ this.certType = CertType.CT_111.getCode();
|
|
|
+ this.insuredName = insuredPersonInfo.getName();
|
|
|
+ this.certNo = insuredPersonInfo.getIdentifyNumber();
|
|
|
+ this.address = insuredPersonInfo.getAddr();
|
|
|
+ this.phoneNumber = insuredPersonInfo.getMobile();
|
|
|
+ this.customerType = CustomerType.CT_2.getCode();
|
|
|
+ this.email = insuredPersonInfo.getEmail();
|
|
|
+ this.certiType = insuredPersonInfo.getIdentifyValidEndDate().contains("9999") ? "1" : "0";
|
|
|
+ this.residentialAddress = insuredPersonInfo.getAddr();
|
|
|
+ // 省市县
|
|
|
+ this.provCode = insuredPersonArea.getProvinceCode();
|
|
|
+ this.provName = insuredPersonArea.getProvinceName();
|
|
|
+ this.cityCode = insuredPersonArea.getCityCode();
|
|
|
+ this.cityName = insuredPersonArea.getCityName();
|
|
|
+ this.distCode = insuredPersonArea.getCountyCode();
|
|
|
+ this.distName = insuredPersonArea.getCountyName();
|
|
|
+ this.birthday = IDCardUtils.GetBirthday(insuredPersonInfo.getIdentifyNumber());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|