|
@@ -2,6 +2,9 @@ package com.ydtech.modules.order.entity.api.huatai.request;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.ydtech.constants.enums.InsuranceRisk;
|
|
import com.ydtech.constants.enums.InsuranceRisk;
|
|
|
|
|
+import com.ydtech.modules.admin.model.vo.PersonAreaVo;
|
|
|
|
|
+import com.ydtech.modules.admin.service.SysAreaService;
|
|
|
|
|
+import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
|
import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
|
|
import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
|
|
@@ -18,11 +21,14 @@ import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.regex.Matcher;
|
|
|
|
|
+import java.util.regex.Pattern;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@@ -31,6 +37,8 @@ import java.util.stream.Collectors;
|
|
|
public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -3434101420731502321L;
|
|
private static final long serialVersionUID = -3434101420731502321L;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@JSONField(name = "businessData")
|
|
@JSONField(name = "businessData")
|
|
|
//投保单信息
|
|
//投保单信息
|
|
|
private BusinessDataDto businessData;
|
|
private BusinessDataDto businessData;
|
|
@@ -45,8 +53,9 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public HuaTaiSubmitRequest(YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany,
|
|
public HuaTaiSubmitRequest(YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany,
|
|
|
- HuaTaiConfigureParameters huaTaiConfigureParameters, List<InsHuataiContributingVo> engageList) {
|
|
|
|
|
- this.businessData = new BusinessDataDto(yaQuoteInfoVo, insAreaCompany, huaTaiConfigureParameters, engageList);
|
|
|
|
|
|
|
+ HuaTaiConfigureParameters huaTaiConfigureParameters, List<InsHuataiContributingVo> engageList,
|
|
|
|
|
+ PersonAreaVo ownerPersonAreaVo,PersonAreaVo insuredPersonAreaVo,PersonAreaVo policyPersonAreaVo) {
|
|
|
|
|
+ this.businessData = new BusinessDataDto(yaQuoteInfoVo, insAreaCompany, huaTaiConfigureParameters, engageList,ownerPersonAreaVo,insuredPersonAreaVo,policyPersonAreaVo);
|
|
|
this.loginCom = huaTaiConfigureParameters.getComCode();
|
|
this.loginCom = huaTaiConfigureParameters.getComCode();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -69,8 +78,22 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
@JSONField(name = "saleInfo")
|
|
@JSONField(name = "saleInfo")
|
|
|
private SaleInfoDto saleInfo;
|
|
private SaleInfoDto saleInfo;
|
|
|
|
|
|
|
|
|
|
+ // 投保车辆信息
|
|
|
|
|
+ @JSONField(name = "insuredObject")
|
|
|
|
|
+ private InsuredDto insuredObject;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 5.0.0版本新增 shareHolderList 控股股东信息(机构必传) 暂时不加
|
|
|
|
|
+// @JSONField(name = "shareHolderList")
|
|
|
|
|
+// private List<ShareHolderDto> shareHolderList;
|
|
|
|
|
+
|
|
|
|
|
+ // 5.0.0版本新增 收益所有人信息(机构必传) 暂时不加
|
|
|
|
|
+// @JSONField(name = "eneficiaryMsgList")
|
|
|
|
|
+// private List<EneficiaryMsgDto> eneficiaryMsgList;
|
|
|
|
|
+
|
|
|
public BusinessDataDto(YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany,
|
|
public BusinessDataDto(YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany,
|
|
|
- HuaTaiConfigureParameters huaTaiConfigureParameters, List<InsHuataiContributingVo> engageList) {
|
|
|
|
|
|
|
+ HuaTaiConfigureParameters huaTaiConfigureParameters, List<InsHuataiContributingVo> engageList,
|
|
|
|
|
+ PersonAreaVo ownerPersonAreaVo,PersonAreaVo insuredPersonAreaVo,PersonAreaVo policyPersonAreaVo) {
|
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
|
|
|
|
|
@@ -82,10 +105,12 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
// 保险信息
|
|
// 保险信息
|
|
|
this.contract = new ContractDto().getContract(riskList, insAreaCompany, engageList);
|
|
this.contract = new ContractDto().getContract(riskList, insAreaCompany, engageList);
|
|
|
// 客户信息
|
|
// 客户信息
|
|
|
- this.customer = new CustomerDto().getCustomers(ownerInfo, policyHolderInfo, insuredPersonInfo, huaTaiConfigureParameters);
|
|
|
|
|
|
|
+ this.customer = new CustomerDto().getCustomers(ownerInfo, policyHolderInfo, insuredPersonInfo, huaTaiConfigureParameters,
|
|
|
|
|
+ ownerPersonAreaVo,insuredPersonAreaVo,policyPersonAreaVo);
|
|
|
//销售信息
|
|
//销售信息
|
|
|
this.saleInfo = new SaleInfoDto(huaTaiConfigureParameters);
|
|
this.saleInfo = new SaleInfoDto(huaTaiConfigureParameters);
|
|
|
-
|
|
|
|
|
|
|
+ CarInfoVo carInfo = yaQuoteInfoVo.getCarInfo();
|
|
|
|
|
+ this.insuredObject = new InsuredDto(carInfo);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -288,21 +313,21 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
//CY 客户地址(省)代码(江西必传)
|
|
//CY 客户地址(省)代码(江西必传)
|
|
|
@JSONField(name = "Province")
|
|
@JSONField(name = "Province")
|
|
|
private String province;
|
|
private String province;
|
|
|
- //CY 客户地址(省)名称(江西必传)
|
|
|
|
|
- @JSONField(name = "ProvinceName")
|
|
|
|
|
- private String provinceName;
|
|
|
|
|
|
|
+// //CY 客户地址(省)名称(江西必传)
|
|
|
|
|
+// @JSONField(name = "ProvinceName")
|
|
|
|
|
+// private String provinceName;
|
|
|
//CY 客户地址(市)代码(江西必传)
|
|
//CY 客户地址(市)代码(江西必传)
|
|
|
@JSONField(name = "City")
|
|
@JSONField(name = "City")
|
|
|
private String city;
|
|
private String city;
|
|
|
- //CY 客户地址(市)名称(江西必传)
|
|
|
|
|
- @JSONField(name = "CityName")
|
|
|
|
|
- private String cityName;
|
|
|
|
|
|
|
+// //CY 客户地址(市)名称(江西必传)
|
|
|
|
|
+// @JSONField(name = "CityName")
|
|
|
|
|
+// private String cityName;
|
|
|
//CY 客户地址(区)代码(江西必传)
|
|
//CY 客户地址(区)代码(江西必传)
|
|
|
@JSONField(name = "District")
|
|
@JSONField(name = "District")
|
|
|
private String district;
|
|
private String district;
|
|
|
- //CY 客户地址(区)名称(江西必传)
|
|
|
|
|
- @JSONField(name = "DistrictName")
|
|
|
|
|
- private String districtName;
|
|
|
|
|
|
|
+// //CY 客户地址(区)名称(江西必传)
|
|
|
|
|
+// @JSONField(name = "DistrictName")
|
|
|
|
|
+// private String districtName;
|
|
|
//CY 手机实际持有人姓名(上海出单必录)
|
|
//CY 手机实际持有人姓名(上海出单必录)
|
|
|
@JSONField(name = "ActualHolderName")
|
|
@JSONField(name = "ActualHolderName")
|
|
|
private String actualHolderName;
|
|
private String actualHolderName;
|
|
@@ -369,9 +394,9 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
//CY 执照、证明有效期(机构客户必传)
|
|
//CY 执照、证明有效期(机构客户必传)
|
|
|
@JSONField(name = "supportDocuValidDate")
|
|
@JSONField(name = "supportDocuValidDate")
|
|
|
private String supportDocuValidDate;
|
|
private String supportDocuValidDate;
|
|
|
- //CY 办理人姓名(机构客户必传)
|
|
|
|
|
- @JSONField(name = "TransactorName")
|
|
|
|
|
- private String transactorName;
|
|
|
|
|
|
|
+// //CY 办理人姓名(机构客户必传)
|
|
|
|
|
+// @JSONField(name = "TransactorName")
|
|
|
|
|
+// private String transactorName;
|
|
|
//CY 办理人证件类型代码(机构客户必传)(参见客户证件类型代码)
|
|
//CY 办理人证件类型代码(机构客户必传)(参见客户证件类型代码)
|
|
|
@JSONField(name = "transactorIdentifyType")
|
|
@JSONField(name = "transactorIdentifyType")
|
|
|
private String transactorIdentifyType;
|
|
private String transactorIdentifyType;
|
|
@@ -381,6 +406,10 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
//CY 办理人手机号码(机构客户必传)
|
|
//CY 办理人手机号码(机构客户必传)
|
|
|
@JSONField(name = "transactorMobile")
|
|
@JSONField(name = "transactorMobile")
|
|
|
private String transactorMobile;
|
|
private String transactorMobile;
|
|
|
|
|
+ //CY 办理人证件有效期(机构客户必传)
|
|
|
|
|
+ @JSONField(name = "transactorStartDate")
|
|
|
|
|
+ private String transactorStartDate;
|
|
|
|
|
+
|
|
|
//CY 办理人证件有效期(机构客户必传)
|
|
//CY 办理人证件有效期(机构客户必传)
|
|
|
@JSONField(name = "transactorExpiryDate")
|
|
@JSONField(name = "transactorExpiryDate")
|
|
|
private String transactorExpiryDate;
|
|
private String transactorExpiryDate;
|
|
@@ -396,12 +425,13 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
//CY 其他住所地或工作单位地址(个人客户必传)
|
|
//CY 其他住所地或工作单位地址(个人客户必传)
|
|
|
@JSONField(name = "otherWorkAddress")
|
|
@JSONField(name = "otherWorkAddress")
|
|
|
private String otherWorkAddress;
|
|
private String otherWorkAddress;
|
|
|
- //CY 联系人信息
|
|
|
|
|
- @JSONField(name = "insuredLinkerList")
|
|
|
|
|
- private List<InsuredLinkerBean> insuredLinkerList;
|
|
|
|
|
|
|
+ // 5.0.0版本 删除字段
|
|
|
|
|
+// //CY 联系人信息
|
|
|
|
|
+// @JSONField(name = "insuredLinkerList")
|
|
|
|
|
+// private List<InsuredLinkerBean> insuredLinkerList;
|
|
|
|
|
|
|
|
|
|
|
|
|
- public CustomerDto(CustomerInfoVo customerInfoVo, String role, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
|
|
+ public CustomerDto(CustomerInfoVo customerInfoVo, String role, HuaTaiConfigureParameters huaTaiConfigureParameters,PersonAreaVo personAreaVo) {
|
|
|
this.identifyNumber = customerInfoVo.getIdentifyNumber();
|
|
this.identifyNumber = customerInfoVo.getIdentifyNumber();
|
|
|
this.identifyType = "01";
|
|
this.identifyType = "01";
|
|
|
this.name = customerInfoVo.getName();
|
|
this.name = customerInfoVo.getName();
|
|
@@ -410,9 +440,15 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
this.type = "1";
|
|
this.type = "1";
|
|
|
this.occupationCode = "20114";//后续需要根据接口维护返参到表里
|
|
this.occupationCode = "20114";//后续需要根据接口维护返参到表里
|
|
|
this.identifyValidDate = customerInfoVo.getIdentifyValidDate() + " " + TimeConstants.START_TIME;
|
|
this.identifyValidDate = customerInfoVo.getIdentifyValidDate() + " " + TimeConstants.START_TIME;
|
|
|
- this.identifyValidEndDate = customerInfoVo.getIdentifyValidEndDate() + " " + TimeConstants.END_TIME;
|
|
|
|
|
- this.addr = customerInfoVo.getAddr();
|
|
|
|
|
|
|
+ this.identifyValidEndDate = customerInfoVo.getIdentifyValidEndDate() + " " + TimeConstants.START_TIME;
|
|
|
|
|
+
|
|
|
this.email = "123@qq.com";
|
|
this.email = "123@qq.com";
|
|
|
|
|
+ //根据身份证号获取省市县代码
|
|
|
|
|
+ this.province = personAreaVo.getProvinceCode();
|
|
|
|
|
+ this.city = personAreaVo.getCityCode();
|
|
|
|
|
+ this.district = personAreaVo.getCountyCode();
|
|
|
|
|
+ String infoAddr = this.parseAddress(customerInfoVo.getAddr());
|
|
|
|
|
+ this.addr = personAreaVo.getProvinceName() + personAreaVo.getCityName() + personAreaVo.getCountyName() + infoAddr;
|
|
|
if (StringUtils.isNotEmpty(customerInfoVo.getEmail())) {
|
|
if (StringUtils.isNotEmpty(customerInfoVo.getEmail())) {
|
|
|
this.email = customerInfoVo.getEmail();
|
|
this.email = customerInfoVo.getEmail();
|
|
|
}
|
|
}
|
|
@@ -427,70 +463,83 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
this.workUnit = "其他";
|
|
this.workUnit = "其他";
|
|
|
this.workAddress = customerInfoVo.getAddr();
|
|
this.workAddress = customerInfoVo.getAddr();
|
|
|
this.otherWorkAddress = customerInfoVo.getAddr();
|
|
this.otherWorkAddress = customerInfoVo.getAddr();
|
|
|
- this.insuredLinkerList = Arrays.asList(new InsuredLinkerBean(customerInfoVo, huaTaiConfigureParameters));
|
|
|
|
|
|
|
+// this.insuredLinkerList = Arrays.asList(new InsuredLinkerBean(customerInfoVo, huaTaiConfigureParameters));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<CustomerDto> getCustomers(CustomerInfoVo ownerInfo, CustomerInfoVo policyHolderInfo, CustomerInfoVo insuredPersonInfo
|
|
public List<CustomerDto> getCustomers(CustomerInfoVo ownerInfo, CustomerInfoVo policyHolderInfo, CustomerInfoVo insuredPersonInfo
|
|
|
- , HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
- return Arrays.asList(new CustomerDto(ownerInfo, "3", huaTaiConfigureParameters), new CustomerDto(policyHolderInfo, "1",
|
|
|
|
|
- huaTaiConfigureParameters), new CustomerDto(insuredPersonInfo, "2", huaTaiConfigureParameters));
|
|
|
|
|
|
|
+ , HuaTaiConfigureParameters huaTaiConfigureParameters,PersonAreaVo ownerPersonAreaVo,PersonAreaVo insuredPersonAreaVo,PersonAreaVo policyPersonAreaVo) {
|
|
|
|
|
+ return Arrays.asList(new CustomerDto(ownerInfo, "3", huaTaiConfigureParameters,ownerPersonAreaVo), new CustomerDto(policyHolderInfo, "1",
|
|
|
|
|
+ huaTaiConfigureParameters,policyPersonAreaVo), new CustomerDto(insuredPersonInfo, "2", huaTaiConfigureParameters,insuredPersonAreaVo));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
+ //过滤 省市县 获取详细地址
|
|
|
|
|
+ public String parseAddress(String idCardAddress) {
|
|
|
|
|
+ String regex = ".*?(乡|镇|街道|村|区)(.*)";
|
|
|
|
|
+ Pattern pattern = Pattern.compile(regex);
|
|
|
|
|
+ Matcher matcher = pattern.matcher(idCardAddress);
|
|
|
|
|
|
|
|
- @AllArgsConstructor
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class InsuredLinkerBean implements Serializable {
|
|
|
|
|
-
|
|
|
|
|
- private static final long serialVersionUID = -7819712018066777471L;
|
|
|
|
|
- // Y 联系人名称
|
|
|
|
|
- @JSONField(name = "linkName")
|
|
|
|
|
- private String linkName;
|
|
|
|
|
- // Y 联系人关联关系(默认传01,对应本人)
|
|
|
|
|
- @JSONField(name = "linkerRelation")
|
|
|
|
|
- private String linkerRelation;
|
|
|
|
|
- // CY 单位电话(机构客户出单必传)
|
|
|
|
|
- @JSONField(name = "unitPhoneNumber")
|
|
|
|
|
- private String unitPhoneNumber;
|
|
|
|
|
- //Y 省(需传省国标码)
|
|
|
|
|
- @JSONField(name = "province")
|
|
|
|
|
- private String province;
|
|
|
|
|
- //Y 市(需传市国标码)
|
|
|
|
|
- @JSONField(name = "city")
|
|
|
|
|
- private String city;
|
|
|
|
|
- //Y 区(需传区国标码)
|
|
|
|
|
- @JSONField(name = "district")
|
|
|
|
|
- private String district;
|
|
|
|
|
- //Y 地址
|
|
|
|
|
- @JSONField(name = "street")
|
|
|
|
|
- private String street;
|
|
|
|
|
- // Y 电话
|
|
|
|
|
- @JSONField(name = "mobile")
|
|
|
|
|
- private String mobile;
|
|
|
|
|
- // CY 邮箱(电子保单必传)
|
|
|
|
|
- @JSONField(name = "email")
|
|
|
|
|
- private String email;
|
|
|
|
|
-
|
|
|
|
|
- public InsuredLinkerBean(CustomerInfoVo customerInfoVo, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
- this.linkName = customerInfoVo.getName();
|
|
|
|
|
- this.linkerRelation = "01";
|
|
|
|
|
-
|
|
|
|
|
- this.province = huaTaiConfigureParameters.getProvince();
|
|
|
|
|
- this.city = huaTaiConfigureParameters.getCity();
|
|
|
|
|
- this.district = huaTaiConfigureParameters.getDistrict();
|
|
|
|
|
-
|
|
|
|
|
- this.street = customerInfoVo.getAddr();
|
|
|
|
|
- this.mobile = customerInfoVo.getMobile();
|
|
|
|
|
- this.email = "123@qq.com";
|
|
|
|
|
- if (StringUtils.isNotEmpty(customerInfoVo.getEmail())) {
|
|
|
|
|
- this.email = customerInfoVo.getEmail();
|
|
|
|
|
|
|
+ if (matcher.find()) {
|
|
|
|
|
+ return idCardAddress.substring(idCardAddress.indexOf(matcher.group(1))); // 从匹配点开始截取
|
|
|
}
|
|
}
|
|
|
|
|
+ return idCardAddress; // 如果匹配失败,返回原始地址
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+// @AllArgsConstructor
|
|
|
|
|
+// @NoArgsConstructor
|
|
|
|
|
+// @Data
|
|
|
|
|
+// public static class InsuredLinkerBean implements Serializable {
|
|
|
|
|
+//
|
|
|
|
|
+// private static final long serialVersionUID = -7819712018066777471L;
|
|
|
|
|
+// // Y 联系人名称
|
|
|
|
|
+// @JSONField(name = "linkName")
|
|
|
|
|
+// private String linkName;
|
|
|
|
|
+// // Y 联系人关联关系(默认传01,对应本人)
|
|
|
|
|
+// @JSONField(name = "linkerRelation")
|
|
|
|
|
+// private String linkerRelation;
|
|
|
|
|
+// // CY 单位电话(机构客户出单必传)
|
|
|
|
|
+// @JSONField(name = "unitPhoneNumber")
|
|
|
|
|
+// private String unitPhoneNumber;
|
|
|
|
|
+// //Y 省(需传省国标码)
|
|
|
|
|
+// @JSONField(name = "province")
|
|
|
|
|
+// private String province;
|
|
|
|
|
+// //Y 市(需传市国标码)
|
|
|
|
|
+// @JSONField(name = "city")
|
|
|
|
|
+// private String city;
|
|
|
|
|
+// //Y 区(需传区国标码)
|
|
|
|
|
+// @JSONField(name = "district")
|
|
|
|
|
+// private String district;
|
|
|
|
|
+// //Y 地址
|
|
|
|
|
+// @JSONField(name = "street")
|
|
|
|
|
+// private String street;
|
|
|
|
|
+// // Y 电话
|
|
|
|
|
+// @JSONField(name = "mobile")
|
|
|
|
|
+// private String mobile;
|
|
|
|
|
+// // CY 邮箱(电子保单必传)
|
|
|
|
|
+// @JSONField(name = "email")
|
|
|
|
|
+// private String email;
|
|
|
|
|
+//
|
|
|
|
|
+// public InsuredLinkerBean(CustomerInfoVo customerInfoVo, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
+// this.linkName = customerInfoVo.getName();
|
|
|
|
|
+// this.linkerRelation = "01";
|
|
|
|
|
+//
|
|
|
|
|
+// this.province = huaTaiConfigureParameters.getProvince();
|
|
|
|
|
+// this.city = huaTaiConfigureParameters.getCity();
|
|
|
|
|
+// this.district = huaTaiConfigureParameters.getDistrict();
|
|
|
|
|
+//
|
|
|
|
|
+// this.street = customerInfoVo.getAddr();
|
|
|
|
|
+// this.mobile = customerInfoVo.getMobile();
|
|
|
|
|
+// this.email = "123@qq.com";
|
|
|
|
|
+// if (StringUtils.isNotEmpty(customerInfoVo.getEmail())) {
|
|
|
|
|
+// this.email = customerInfoVo.getEmail();
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
+
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
@@ -510,4 +559,59 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @AllArgsConstructor
|
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
|
+ @Data
|
|
|
|
|
+ public static class InsuredDto implements Serializable {
|
|
|
|
|
+
|
|
|
|
|
+ private static final long serialVersionUID = 2631084372177408934L;
|
|
|
|
|
+ // 车辆信息
|
|
|
|
|
+ @JSONField(name = "policyCar")
|
|
|
|
|
+ private PolicyCarDto policyCar;
|
|
|
|
|
+
|
|
|
|
|
+ @JSONField(name = "simpleStadarCar")
|
|
|
|
|
+ private HuaTaiQuotedPriceRequest.BusinessDataDto.InsuredObjectDto.SimpleStadarCarDto simpleStadarCar;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @AllArgsConstructor
|
|
|
|
|
+ @Data
|
|
|
|
|
+ public static class PolicyCarDto implements Serializable {
|
|
|
|
|
+
|
|
|
|
|
+ private static final long serialVersionUID = -1000678860334502885L;
|
|
|
|
|
+
|
|
|
|
|
+ //Y 验车状态
|
|
|
|
|
+ @JSONField(name = "CarCheckStatus")
|
|
|
|
|
+ private String CarCheckStatus;
|
|
|
|
|
+
|
|
|
|
|
+ //CY 验车人(已验车必传)
|
|
|
|
|
+ @JSONField(name = "CarChecker")
|
|
|
|
|
+ private String CarChecker;
|
|
|
|
|
+
|
|
|
|
|
+ //CY 验车时间(已验车必传)(格式:YYYY-MM-DD HH24:MI:SS)
|
|
|
|
|
+ @JSONField(name = "CarCheckTime")
|
|
|
|
|
+ private String CarCheckTime;
|
|
|
|
|
+
|
|
|
|
|
+ //CY 验车记录(已验车必传)
|
|
|
|
|
+ @JSONField(name = "CarCheckRecord")
|
|
|
|
|
+ private String CarCheckRecord;
|
|
|
|
|
+
|
|
|
|
|
+ //N 车况(0-好;1-中;2-差)
|
|
|
|
|
+ @JSONField(name = "VehicleCondition")
|
|
|
|
|
+ private String VehicleCondition;
|
|
|
|
|
+ public PolicyCarDto() {
|
|
|
|
|
+ this.CarCheckStatus = "2";
|
|
|
|
|
+ this.VehicleCondition = "0";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public InsuredDto(CarInfoVo carInfoVo) {
|
|
|
|
|
+ this.policyCar = new PolicyCarDto();
|
|
|
|
|
+ this.simpleStadarCar = new HuaTaiQuotedPriceRequest.BusinessDataDto.InsuredObjectDto.SimpleStadarCarDto(carInfoVo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|