|
@@ -2,9 +2,7 @@ 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.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.KindInfoVo;
|
|
|
|
|
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;
|
|
|
import com.ydtech.modules.order.constants.InsuranceTypeCorrespondence;
|
|
import com.ydtech.modules.order.constants.InsuranceTypeCorrespondence;
|
|
@@ -12,13 +10,9 @@ import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
import com.ydtech.modules.order.entity.api.huatai.HuaTaiBaseRequest;
|
|
import com.ydtech.modules.order.entity.api.huatai.HuaTaiBaseRequest;
|
|
|
import com.ydtech.modules.order.entity.api.huatai.HuaTaiBaseRequestHead;
|
|
import com.ydtech.modules.order.entity.api.huatai.HuaTaiBaseRequestHead;
|
|
|
import com.ydtech.modules.order.entity.api.huatai.constants.HuaTaiTransCode;
|
|
import com.ydtech.modules.order.entity.api.huatai.constants.HuaTaiTransCode;
|
|
|
-import com.ydtech.modules.order.entity.api.huatai.response.HuaTaiActualValueResponse;
|
|
|
|
|
-import com.ydtech.modules.order.entity.api.huatai.response.HuaTaiModelsQueryResponse;
|
|
|
|
|
import com.ydtech.modules.order.entity.api.zhongmei.constants.TimeConstants;
|
|
import com.ydtech.modules.order.entity.api.zhongmei.constants.TimeConstants;
|
|
|
import com.ydtech.modules.order.entity.config.HuaTaiConfigureParameters;
|
|
import com.ydtech.modules.order.entity.config.HuaTaiConfigureParameters;
|
|
|
-import com.ydtech.modules.order.entity.vo.AccidentalDrivingVo;
|
|
|
|
|
-import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
|
|
-import com.ydtech.modules.order.entity.vo.VehicleAndVesselTax;
|
|
|
|
|
|
|
+import com.ydtech.modules.order.entity.vo.huatai.InsHuataiContributingVo;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
@@ -26,35 +20,39 @@ import lombok.NoArgsConstructor;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
-import java.math.BigDecimal;
|
|
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
|
-import java.util.*;
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
-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;
|
|
|
//Y 机构代码
|
|
//Y 机构代码
|
|
|
- @JSONField(name="loginCom")
|
|
|
|
|
|
|
+ @JSONField(name = "loginCom")
|
|
|
private String loginCom;
|
|
private String loginCom;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public void setHead(HuaTaiBaseRequestHead head) {
|
|
public void setHead(HuaTaiBaseRequestHead head) {
|
|
|
super.setHead(head);
|
|
super.setHead(head);
|
|
|
super.getHead().setTransCode(HuaTaiTransCode.SAVE);
|
|
super.getHead().setTransCode(HuaTaiTransCode.SAVE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public HuaTaiSubmitRequest (YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany, HuaTaiConfigureParameters huaTaiConfigureParameters){
|
|
|
|
|
- this.businessData = new BusinessDataDto(yaQuoteInfoVo,insAreaCompany,huaTaiConfigureParameters);
|
|
|
|
|
|
|
+ public HuaTaiSubmitRequest(YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany,
|
|
|
|
|
+ HuaTaiConfigureParameters huaTaiConfigureParameters, List<InsHuataiContributingVo> engageList) {
|
|
|
|
|
+ this.businessData = new BusinessDataDto(yaQuoteInfoVo, insAreaCompany, huaTaiConfigureParameters, engageList);
|
|
|
this.loginCom = huaTaiConfigureParameters.getComCode();
|
|
this.loginCom = huaTaiConfigureParameters.getComCode();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
@@ -62,19 +60,20 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -4470540010039479454L;
|
|
private static final long serialVersionUID = -4470540010039479454L;
|
|
|
// 投保主信息
|
|
// 投保主信息
|
|
|
- @JSONField(name="businessMain")
|
|
|
|
|
|
|
+ @JSONField(name = "businessMain")
|
|
|
private BusinessMainDto businessMain;
|
|
private BusinessMainDto businessMain;
|
|
|
// 业务信息(列表)
|
|
// 业务信息(列表)
|
|
|
- @JSONField(name="contract")
|
|
|
|
|
|
|
+ @JSONField(name = "contract")
|
|
|
private List<ContractDto> contract;
|
|
private List<ContractDto> contract;
|
|
|
// 客户信息(列表)
|
|
// 客户信息(列表)
|
|
|
- @JSONField(name="customer")
|
|
|
|
|
|
|
+ @JSONField(name = "customer")
|
|
|
private List<CustomerDto> customer;
|
|
private List<CustomerDto> customer;
|
|
|
// 销售信息
|
|
// 销售信息
|
|
|
- @JSONField(name="saleInfo")
|
|
|
|
|
|
|
+ @JSONField(name = "saleInfo")
|
|
|
private SaleInfoDto saleInfo;
|
|
private SaleInfoDto saleInfo;
|
|
|
|
|
|
|
|
- public BusinessDataDto(YaQuoteInfoVo yaQuoteInfoVo,InsAreaCompany insAreaCompany, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
|
|
+ public BusinessDataDto(YaQuoteInfoVo yaQuoteInfoVo, InsAreaCompany insAreaCompany,
|
|
|
|
|
+ HuaTaiConfigureParameters huaTaiConfigureParameters, List<InsHuataiContributingVo> engageList) {
|
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
|
CustomerInfoVo policyHolderInfo = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
CustomerInfoVo policyHolderInfo = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
@@ -82,9 +81,9 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
// 保单归属地
|
|
// 保单归属地
|
|
|
this.businessMain = new BusinessMainDto(huaTaiConfigureParameters);
|
|
this.businessMain = new BusinessMainDto(huaTaiConfigureParameters);
|
|
|
// 保险信息
|
|
// 保险信息
|
|
|
- this.contract = new ContractDto().getContract(riskList,insAreaCompany,huaTaiConfigureParameters);
|
|
|
|
|
|
|
+ this.contract = new ContractDto().getContract(riskList, insAreaCompany, huaTaiConfigureParameters, engageList);
|
|
|
// 客户信息
|
|
// 客户信息
|
|
|
- this.customer = new CustomerDto().getCustomers(ownerInfo, policyHolderInfo, insuredPersonInfo,huaTaiConfigureParameters);
|
|
|
|
|
|
|
+ this.customer = new CustomerDto().getCustomers(ownerInfo, policyHolderInfo, insuredPersonInfo, huaTaiConfigureParameters);
|
|
|
//销售信息
|
|
//销售信息
|
|
|
this.saleInfo = new SaleInfoDto(huaTaiConfigureParameters);
|
|
this.saleInfo = new SaleInfoDto(huaTaiConfigureParameters);
|
|
|
|
|
|
|
@@ -94,14 +93,14 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class BusinessMainDto implements Serializable{
|
|
|
|
|
|
|
+ public static class BusinessMainDto implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -3901160212812740520L;
|
|
private static final long serialVersionUID = -3901160212812740520L;
|
|
|
// 操作机构代码
|
|
// 操作机构代码
|
|
|
- @JSONField(name="makeCom")
|
|
|
|
|
|
|
+ @JSONField(name = "makeCom")
|
|
|
private String makeCom;
|
|
private String makeCom;
|
|
|
// 操作员代码
|
|
// 操作员代码
|
|
|
- @JSONField(name="operatorCode")
|
|
|
|
|
|
|
+ @JSONField(name = "operatorCode")
|
|
|
private String operatorCode;
|
|
private String operatorCode;
|
|
|
|
|
|
|
|
public BusinessMainDto(HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
public BusinessMainDto(HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
@@ -113,35 +112,42 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class ContractDto implements Serializable{
|
|
|
|
|
|
|
+ public static class ContractDto implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 2452110821283897129L;
|
|
private static final long serialVersionUID = 2452110821283897129L;
|
|
|
// 业务主信息
|
|
// 业务主信息
|
|
|
- @JSONField(name="contractMain")
|
|
|
|
|
|
|
+ @JSONField(name = "contractMain")
|
|
|
private ContractMainDto contractMain;
|
|
private ContractMainDto contractMain;
|
|
|
// 平台交互信息
|
|
// 平台交互信息
|
|
|
- @JSONField(name="platFormMessage")
|
|
|
|
|
|
|
+ @JSONField(name = "platFormMessage")
|
|
|
private PlatFormMessage platFormMessage;
|
|
private PlatFormMessage platFormMessage;
|
|
|
//CY 自定义特别约定列表
|
|
//CY 自定义特别约定列表
|
|
|
- @JSONField(name="engage")
|
|
|
|
|
|
|
+ @JSONField(name = "engage")
|
|
|
private List<EngageDto> engage;
|
|
private List<EngageDto> engage;
|
|
|
|
|
|
|
|
- public List<ContractDto> getContract(List<RiskInfoVo> riskInfoVos,InsAreaCompany insAreaCompany, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
|
|
+ public List<ContractDto> getContract(List<RiskInfoVo> riskInfoVos, InsAreaCompany insAreaCompany,
|
|
|
|
|
+ HuaTaiConfigureParameters huaTaiConfigureParameters,
|
|
|
|
|
+ List<InsHuataiContributingVo> engageList) {
|
|
|
String querySequenceNos[] = insAreaCompany.getInsOrderNo().split("-");
|
|
String querySequenceNos[] = insAreaCompany.getInsOrderNo().split("-");
|
|
|
String jqQuerySequenceNo = querySequenceNos[0].trim();
|
|
String jqQuerySequenceNo = querySequenceNos[0].trim();
|
|
|
String syQuerySequenceNo = querySequenceNos[1].trim();
|
|
String syQuerySequenceNo = querySequenceNos[1].trim();
|
|
|
List<ContractDto> contractDTOS = new ArrayList<>();
|
|
List<ContractDto> contractDTOS = new ArrayList<>();
|
|
|
for (RiskInfoVo riskInfoVo : riskInfoVos) {
|
|
for (RiskInfoVo riskInfoVo : riskInfoVos) {
|
|
|
ContractDto contractDto = new ContractDto();
|
|
ContractDto contractDto = new ContractDto();
|
|
|
- this.contractMain = new ContractMainDto(riskInfoVo,insAreaCompany,huaTaiConfigureParameters);
|
|
|
|
|
|
|
+ this.contractMain = new ContractMainDto(riskInfoVo, insAreaCompany, huaTaiConfigureParameters);
|
|
|
if (InsuranceRisk.TRAFFIC.getCode().equals(riskInfoVo.getRiskCode())) {
|
|
if (InsuranceRisk.TRAFFIC.getCode().equals(riskInfoVo.getRiskCode())) {
|
|
|
- this.platFormMessage = new PlatFormMessage(jqQuerySequenceNo,huaTaiConfigureParameters);
|
|
|
|
|
|
|
+ this.platFormMessage = new PlatFormMessage(jqQuerySequenceNo);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (InsuranceRisk.BUSINESS.getCode().equals(riskInfoVo.getRiskCode())) {
|
|
if (InsuranceRisk.BUSINESS.getCode().equals(riskInfoVo.getRiskCode())) {
|
|
|
- this.platFormMessage = new PlatFormMessage(syQuerySequenceNo,huaTaiConfigureParameters);
|
|
|
|
|
- this.engage = new EngageDto().getEngageList(syQuerySequenceNo,huaTaiConfigureParameters);
|
|
|
|
|
- contractDto.setEngage(engage);
|
|
|
|
|
|
|
+ this.platFormMessage = new PlatFormMessage(syQuerySequenceNo);
|
|
|
}
|
|
}
|
|
|
|
|
+ List<InsHuataiContributingVo> insHuataiContributingVos =
|
|
|
|
|
+ engageList.stream().filter(x -> x.getRiskCode().equals(riskInfoVo.getRiskCode())).collect(Collectors.toList());
|
|
|
|
|
+
|
|
|
|
|
+ this.engage = new EngageDto().getEngageList(insHuataiContributingVos);
|
|
|
|
|
+
|
|
|
|
|
+ contractDto.setEngage(engage);
|
|
|
contractDto.setContractMain(contractMain);
|
|
contractDto.setContractMain(contractMain);
|
|
|
contractDto.setPlatFormMessage(platFormMessage);
|
|
contractDto.setPlatFormMessage(platFormMessage);
|
|
|
contractDTOS.add(contractDto);
|
|
contractDTOS.add(contractDto);
|
|
@@ -153,33 +159,33 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class ContractMainDto implements Serializable{
|
|
|
|
|
|
|
+ public static class ContractMainDto implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -827498526562322815L;
|
|
private static final long serialVersionUID = -827498526562322815L;
|
|
|
//报价单号(需传入报价接口返回的值)
|
|
//报价单号(需传入报价接口返回的值)
|
|
|
- @JSONField(name="contractNo")
|
|
|
|
|
|
|
+ @JSONField(name = "contractNo")
|
|
|
private String contractNo;
|
|
private String contractNo;
|
|
|
//参见险种代码
|
|
//参见险种代码
|
|
|
- @JSONField(name="riskCode")
|
|
|
|
|
|
|
+ @JSONField(name = "riskCode")
|
|
|
private String riskCode;
|
|
private String riskCode;
|
|
|
//起保日期(YYYY-MM-DD HH24:MI:SS)
|
|
//起保日期(YYYY-MM-DD HH24:MI:SS)
|
|
|
- @JSONField(name="validDate")
|
|
|
|
|
|
|
+ @JSONField(name = "validDate")
|
|
|
private String validDate;
|
|
private String validDate;
|
|
|
//终保日期(YYYY-MM-DD HH24:MI:SS)
|
|
//终保日期(YYYY-MM-DD HH24:MI:SS)
|
|
|
- @JSONField(name="expiryDate")
|
|
|
|
|
|
|
+ @JSONField(name = "expiryDate")
|
|
|
private String expiryDate;
|
|
private String expiryDate;
|
|
|
//总签单保费
|
|
//总签单保费
|
|
|
- @JSONField(name="totalPremium")
|
|
|
|
|
|
|
+ @JSONField(name = "totalPremium")
|
|
|
private double totalPremium;
|
|
private double totalPremium;
|
|
|
//备注
|
|
//备注
|
|
|
- @JSONField(name="remark")
|
|
|
|
|
|
|
+ @JSONField(name = "remark")
|
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
|
|
|
- public ContractMainDto(RiskInfoVo riskInfoVo,InsAreaCompany insAreaCompany, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
- if("0507".equals(riskInfoVo.getRiskCode())){
|
|
|
|
|
|
|
+ public ContractMainDto(RiskInfoVo riskInfoVo, InsAreaCompany insAreaCompany, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
+ if ("0507".equals(riskInfoVo.getRiskCode())) {
|
|
|
this.contractNo = insAreaCompany.getJqapplyno();
|
|
this.contractNo = insAreaCompany.getJqapplyno();
|
|
|
this.totalPremium = insAreaCompany.getJqpremium().doubleValue();
|
|
this.totalPremium = insAreaCompany.getJqpremium().doubleValue();
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
this.contractNo = insAreaCompany.getSyapplyno();
|
|
this.contractNo = insAreaCompany.getSyapplyno();
|
|
|
this.totalPremium = insAreaCompany.getSypremium().doubleValue();
|
|
this.totalPremium = insAreaCompany.getSypremium().doubleValue();
|
|
|
}
|
|
}
|
|
@@ -203,210 +209,209 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @AllArgsConstructor
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class PlatFormMessage implements Serializable{
|
|
|
|
|
|
|
+ public static class PlatFormMessage implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 7957269957188794595L;
|
|
private static final long serialVersionUID = 7957269957188794595L;
|
|
|
// 业务主信息
|
|
// 业务主信息
|
|
|
- @JSONField(name="querySequenceNo")
|
|
|
|
|
|
|
+ @JSONField(name = "querySequenceNo")
|
|
|
private String querySequenceNo;
|
|
private String querySequenceNo;
|
|
|
|
|
|
|
|
- public PlatFormMessage(String querySequenceNo, HuaTaiConfigureParameters huaTaiConfigureParameters){
|
|
|
|
|
|
|
+ public PlatFormMessage(String querySequenceNo) {
|
|
|
this.querySequenceNo = querySequenceNo;
|
|
this.querySequenceNo = querySequenceNo;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class EngageDto implements Serializable{
|
|
|
|
|
|
|
+ public static class EngageDto implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 7957269957188794595L;
|
|
private static final long serialVersionUID = 7957269957188794595L;
|
|
|
// 业务主信息
|
|
// 业务主信息
|
|
|
- @JSONField(name="engageCode")
|
|
|
|
|
|
|
+ @JSONField(name = "engageCode")
|
|
|
private String engageCode;
|
|
private String engageCode;
|
|
|
// 业务主信息
|
|
// 业务主信息
|
|
|
- @JSONField(name="engageTitle")
|
|
|
|
|
|
|
+ @JSONField(name = "engageTitle")
|
|
|
private String engageTitle;
|
|
private String engageTitle;
|
|
|
// 业务主信息
|
|
// 业务主信息
|
|
|
- @JSONField(name="engageDetail")
|
|
|
|
|
|
|
+ @JSONField(name = "engageDetail")
|
|
|
private String engageDetail;
|
|
private String engageDetail;
|
|
|
|
|
|
|
|
- public EngageDto(String querySequenceNo, HuaTaiConfigureParameters huaTaiConfigureParameters){
|
|
|
|
|
- this.engageCode ="T9994";
|
|
|
|
|
- this.engageTitle = "非营业约定(1251)";
|
|
|
|
|
- this.engageDetail = "本保险单承保非营业车辆,如果保险车辆用于租赁或营业运输,发生保险事故,保险人不承担赔偿责任。";
|
|
|
|
|
|
|
+ public EngageDto(InsHuataiContributingVo insHuataiContributingVo) {
|
|
|
|
|
+ this.engageCode = insHuataiContributingVo.getEngageCode();
|
|
|
|
|
+ this.engageTitle = insHuataiContributingVo.getEngageTitle();
|
|
|
|
|
+ this.engageDetail = insHuataiContributingVo.getEngageDetail();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public List<EngageDto> getEngageList(String querySequenceNo, HuaTaiConfigureParameters huaTaiConfigureParameters){
|
|
|
|
|
- List<EngageDto> engageDtoList = new ArrayList<>();
|
|
|
|
|
- engageDtoList.add(new EngageDto(querySequenceNo,huaTaiConfigureParameters));
|
|
|
|
|
- return engageDtoList;
|
|
|
|
|
|
|
+ public List<EngageDto> getEngageList(List<InsHuataiContributingVo> insHuataiContributingVos) {
|
|
|
|
|
+ return insHuataiContributingVos.stream().map(EngageDto::new).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class CustomerDto implements Serializable{
|
|
|
|
|
|
|
+ public static class CustomerDto implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 3423549173956690508L;
|
|
private static final long serialVersionUID = 3423549173956690508L;
|
|
|
//Y 证件号码(个人客户必传)
|
|
//Y 证件号码(个人客户必传)
|
|
|
- @JSONField(name="identifyNumber")
|
|
|
|
|
|
|
+ @JSONField(name = "identifyNumber")
|
|
|
private String identifyNumber;
|
|
private String identifyNumber;
|
|
|
//CY 组织机构代码(机构客户必录)
|
|
//CY 组织机构代码(机构客户必录)
|
|
|
- @JSONField(name="organizeCode")
|
|
|
|
|
|
|
+ @JSONField(name = "organizeCode")
|
|
|
private String organizeCode;
|
|
private String organizeCode;
|
|
|
//Y 参见客户证件类型代码(机构客户传99)
|
|
//Y 参见客户证件类型代码(机构客户传99)
|
|
|
- @JSONField(name="identifyType")
|
|
|
|
|
|
|
+ @JSONField(name = "identifyType")
|
|
|
private String identifyType;
|
|
private String identifyType;
|
|
|
//Y 名称
|
|
//Y 名称
|
|
|
- @JSONField(name="name")
|
|
|
|
|
|
|
+ @JSONField(name = "name")
|
|
|
private String name;
|
|
private String name;
|
|
|
//Y 客户角色身份(1-投保人;2-被保险人;3-车主)
|
|
//Y 客户角色身份(1-投保人;2-被保险人;3-车主)
|
|
|
- @JSONField(name="role")
|
|
|
|
|
|
|
+ @JSONField(name = "role")
|
|
|
private String role;
|
|
private String role;
|
|
|
//Y 手机号码
|
|
//Y 手机号码
|
|
|
- @JSONField(name="mobile")
|
|
|
|
|
|
|
+ @JSONField(name = "mobile")
|
|
|
private String mobile;
|
|
private String mobile;
|
|
|
//Y 证件有效起期(格式:YYYY-MM-DD HH24:MI:SS)
|
|
//Y 证件有效起期(格式:YYYY-MM-DD HH24:MI:SS)
|
|
|
- @JSONField(name="identifyValidDate")
|
|
|
|
|
|
|
+ @JSONField(name = "identifyValidDate")
|
|
|
private String identifyValidDate;
|
|
private String identifyValidDate;
|
|
|
//Y 证件有效止期(格式:YYYY-MM-DD HH24:MI:SS)
|
|
//Y 证件有效止期(格式:YYYY-MM-DD HH24:MI:SS)
|
|
|
- @JSONField(name="identifyValidEndDate")
|
|
|
|
|
|
|
+ @JSONField(name = "identifyValidEndDate")
|
|
|
private String identifyValidEndDate;
|
|
private String identifyValidEndDate;
|
|
|
//Y 客户职业(通过职业查询接口获得)
|
|
//Y 客户职业(通过职业查询接口获得)
|
|
|
- @JSONField(name="occupationCode")
|
|
|
|
|
|
|
+ @JSONField(name = "occupationCode")
|
|
|
private String occupationCode;
|
|
private String occupationCode;
|
|
|
//Y 客户地址
|
|
//Y 客户地址
|
|
|
- @JSONField(name="addr")
|
|
|
|
|
|
|
+ @JSONField(name = "addr")
|
|
|
private String addr;
|
|
private String addr;
|
|
|
//Y 客户邮箱
|
|
//Y 客户邮箱
|
|
|
- @JSONField(name="email")
|
|
|
|
|
|
|
+ @JSONField(name = "email")
|
|
|
private String email;
|
|
private String email;
|
|
|
//Y 客户类型(1-个人,2-机构)
|
|
//Y 客户类型(1-个人,2-机构)
|
|
|
- @JSONField(name="type")
|
|
|
|
|
|
|
+ @JSONField(name = "type")
|
|
|
private String type;
|
|
private String type;
|
|
|
//CY 车辆与被保险人所属关系(1-所有;2-使用;3-管理,当角色是被保险人时必传)
|
|
//CY 车辆与被保险人所属关系(1-所有;2-使用;3-管理,当角色是被保险人时必传)
|
|
|
- @JSONField(name="carInsuredRelation")
|
|
|
|
|
|
|
+ @JSONField(name = "carInsuredRelation")
|
|
|
private String carInsuredRelation;
|
|
private String carInsuredRelation;
|
|
|
//CY 参见投保人与被保人关系代码(投保人和被保人均为个人客户时必传)
|
|
//CY 参见投保人与被保人关系代码(投保人和被保人均为个人客户时必传)
|
|
|
- @JSONField(name="aiRelation")
|
|
|
|
|
|
|
+ @JSONField(name = "aiRelation")
|
|
|
private String aiRelation;
|
|
private String aiRelation;
|
|
|
//CY 客户地址(省)代码(江西必传)
|
|
//CY 客户地址(省)代码(江西必传)
|
|
|
- @JSONField(name="Province")
|
|
|
|
|
|
|
+ @JSONField(name = "Province")
|
|
|
private String province;
|
|
private String province;
|
|
|
//CY 客户地址(省)名称(江西必传)
|
|
//CY 客户地址(省)名称(江西必传)
|
|
|
- @JSONField(name="ProvinceName")
|
|
|
|
|
|
|
+ @JSONField(name = "ProvinceName")
|
|
|
private String provinceName;
|
|
private String provinceName;
|
|
|
//CY 客户地址(市)代码(江西必传)
|
|
//CY 客户地址(市)代码(江西必传)
|
|
|
- @JSONField(name="City")
|
|
|
|
|
|
|
+ @JSONField(name = "City")
|
|
|
private String city;
|
|
private String city;
|
|
|
//CY 客户地址(市)名称(江西必传)
|
|
//CY 客户地址(市)名称(江西必传)
|
|
|
- @JSONField(name="CityName")
|
|
|
|
|
|
|
+ @JSONField(name = "CityName")
|
|
|
private String cityName;
|
|
private String cityName;
|
|
|
//CY 客户地址(区)代码(江西必传)
|
|
//CY 客户地址(区)代码(江西必传)
|
|
|
- @JSONField(name="District")
|
|
|
|
|
|
|
+ @JSONField(name = "District")
|
|
|
private String district;
|
|
private String district;
|
|
|
//CY 客户地址(区)名称(江西必传)
|
|
//CY 客户地址(区)名称(江西必传)
|
|
|
- @JSONField(name="DistrictName")
|
|
|
|
|
|
|
+ @JSONField(name = "DistrictName")
|
|
|
private String districtName;
|
|
private String districtName;
|
|
|
//CY 手机实际持有人姓名(上海出单必录)
|
|
//CY 手机实际持有人姓名(上海出单必录)
|
|
|
- @JSONField(name="ActualHolderName")
|
|
|
|
|
|
|
+ @JSONField(name = "ActualHolderName")
|
|
|
private String actualHolderName;
|
|
private String actualHolderName;
|
|
|
//CY 手机实际持有人证件类型(参见客户证件类型代码)(上海出单必录)
|
|
//CY 手机实际持有人证件类型(参见客户证件类型代码)(上海出单必录)
|
|
|
- @JSONField(name="ActualHolderIdentifyType")
|
|
|
|
|
|
|
+ @JSONField(name = "ActualHolderIdentifyType")
|
|
|
private String actualHolderIdentifyType;
|
|
private String actualHolderIdentifyType;
|
|
|
//CY 手机实际持有人证件号码(上海出单必录)
|
|
//CY 手机实际持有人证件号码(上海出单必录)
|
|
|
- @JSONField(name="ActualHolderIdentifyCode")
|
|
|
|
|
|
|
+ @JSONField(name = "ActualHolderIdentifyCode")
|
|
|
private String actualHolderIdentifyCode;
|
|
private String actualHolderIdentifyCode;
|
|
|
//CY 企业经办人类别(传值参见企业经办人类别)(上海机构客户出单必录)
|
|
//CY 企业经办人类别(传值参见企业经办人类别)(上海机构客户出单必录)
|
|
|
- @JSONField(name="transactorType")
|
|
|
|
|
|
|
+ @JSONField(name = "transactorType")
|
|
|
private String transactorType;
|
|
private String transactorType;
|
|
|
//CY 营业性质/主要业务范围(机构客户)
|
|
//CY 营业性质/主要业务范围(机构客户)
|
|
|
- @JSONField(name="businessDetail")
|
|
|
|
|
|
|
+ @JSONField(name = "businessDetail")
|
|
|
private String businessDetail;
|
|
private String businessDetail;
|
|
|
//CY 行业代码(机构客户)(传值参见行业代码)
|
|
//CY 行业代码(机构客户)(传值参见行业代码)
|
|
|
- @JSONField(name="BusinessSource")
|
|
|
|
|
|
|
+ @JSONField(name = "BusinessSource")
|
|
|
private String businessSource;
|
|
private String businessSource;
|
|
|
//CY 国籍代码(传值参见国籍代码)
|
|
//CY 国籍代码(传值参见国籍代码)
|
|
|
- @JSONField(name="CitizenshipCode")
|
|
|
|
|
|
|
+ @JSONField(name = "CitizenshipCode")
|
|
|
private String citizenshipCode;
|
|
private String citizenshipCode;
|
|
|
//CY 股权结构(机构客户)(传值参见股权结构)
|
|
//CY 股权结构(机构客户)(传值参见股权结构)
|
|
|
- @JSONField(name="EquityStructure")
|
|
|
|
|
|
|
+ @JSONField(name = "EquityStructure")
|
|
|
private String equityStructure;
|
|
private String equityStructure;
|
|
|
//CY 法定代表人姓名(机构客户)
|
|
//CY 法定代表人姓名(机构客户)
|
|
|
- @JSONField(name="leaderName")
|
|
|
|
|
|
|
+ @JSONField(name = "leaderName")
|
|
|
private String leaderName;
|
|
private String leaderName;
|
|
|
//CY 法定代表人姓名其他身份证明号码(机构客户)
|
|
//CY 法定代表人姓名其他身份证明号码(机构客户)
|
|
|
- @JSONField(name="leaderIdentifyNumber")
|
|
|
|
|
|
|
+ @JSONField(name = "leaderIdentifyNumber")
|
|
|
private String leaderIdentifyNumber;
|
|
private String leaderIdentifyNumber;
|
|
|
//CY 法定代表人姓名其他身份证明种类(机构客户)(参见客户证件类型代码)
|
|
//CY 法定代表人姓名其他身份证明种类(机构客户)(参见客户证件类型代码)
|
|
|
- @JSONField(name="leaderOtherIdentifyType")
|
|
|
|
|
|
|
+ @JSONField(name = "leaderOtherIdentifyType")
|
|
|
private String leaderOtherIdentifyType;
|
|
private String leaderOtherIdentifyType;
|
|
|
//CY 法定代表人姓名其他身份证明号码(机构客户)
|
|
//CY 法定代表人姓名其他身份证明号码(机构客户)
|
|
|
- @JSONField(name="leaderOtherIdentifyNumber")
|
|
|
|
|
|
|
+ @JSONField(name = "leaderOtherIdentifyNumber")
|
|
|
private String leaderOtherIdentifyNumber;
|
|
private String leaderOtherIdentifyNumber;
|
|
|
//CY 法定代表人姓名其他身份证明有效期(机构客户)
|
|
//CY 法定代表人姓名其他身份证明有效期(机构客户)
|
|
|
- @JSONField(name="leaderOtherEffectiveDate")
|
|
|
|
|
|
|
+ @JSONField(name = "leaderOtherEffectiveDate")
|
|
|
private String leaderOtherEffectiveDate;
|
|
private String leaderOtherEffectiveDate;
|
|
|
//CY 注册所在地代码(机构客户)(参见注册所在地代码)
|
|
//CY 注册所在地代码(机构客户)(参见注册所在地代码)
|
|
|
- @JSONField(name="nationalityCode")
|
|
|
|
|
|
|
+ @JSONField(name = "nationalityCode")
|
|
|
private String nationalityCode;
|
|
private String nationalityCode;
|
|
|
//CY 注册资本金币种(机构客户)
|
|
//CY 注册资本金币种(机构客户)
|
|
|
- @JSONField(name="registCurrency")
|
|
|
|
|
|
|
+ @JSONField(name = "registCurrency")
|
|
|
private String registCurrency;
|
|
private String registCurrency;
|
|
|
//CY 注册资本金(机构客户)
|
|
//CY 注册资本金(机构客户)
|
|
|
- @JSONField(name="registFund")
|
|
|
|
|
|
|
+ @JSONField(name = "registFund")
|
|
|
private String registFund;
|
|
private String registFund;
|
|
|
//CY 税务号(机构客户)
|
|
//CY 税务号(机构客户)
|
|
|
- @JSONField(name="RevenueCode")
|
|
|
|
|
|
|
+ @JSONField(name = "RevenueCode")
|
|
|
private String revenueCode;
|
|
private String revenueCode;
|
|
|
//CY 反洗钱交易监测记录(参见风险提示信息或权威媒体报道)
|
|
//CY 反洗钱交易监测记录(参见风险提示信息或权威媒体报道)
|
|
|
- @JSONField(name="MonitorRecord")
|
|
|
|
|
|
|
+ @JSONField(name = "MonitorRecord")
|
|
|
private String monitorRecord;
|
|
private String monitorRecord;
|
|
|
//CY 风险提示信息或权威媒体报道(参见风险提示信息或权威媒体报道)
|
|
//CY 风险提示信息或权威媒体报道(参见风险提示信息或权威媒体报道)
|
|
|
- @JSONField(name="RiskWarnInfo")
|
|
|
|
|
|
|
+ @JSONField(name = "RiskWarnInfo")
|
|
|
private String riskWarnInfo;
|
|
private String riskWarnInfo;
|
|
|
//CY 执照、证明名称(机构客户必传)
|
|
//CY 执照、证明名称(机构客户必传)
|
|
|
- @JSONField(name="supportDocuName")
|
|
|
|
|
|
|
+ @JSONField(name = "supportDocuName")
|
|
|
private String supportDocuName;
|
|
private String supportDocuName;
|
|
|
//CY 执照、证明号码(机构客户必传)
|
|
//CY 执照、证明号码(机构客户必传)
|
|
|
- @JSONField(name="supportDocuNumber")
|
|
|
|
|
|
|
+ @JSONField(name = "supportDocuNumber")
|
|
|
private String supportDocuNumber;
|
|
private String supportDocuNumber;
|
|
|
//CY 执照、证明有效期(机构客户必传)
|
|
//CY 执照、证明有效期(机构客户必传)
|
|
|
- @JSONField(name="supportDocuValidDate")
|
|
|
|
|
|
|
+ @JSONField(name = "supportDocuValidDate")
|
|
|
private String supportDocuValidDate;
|
|
private String supportDocuValidDate;
|
|
|
//CY 办理人姓名(机构客户必传)
|
|
//CY 办理人姓名(机构客户必传)
|
|
|
- @JSONField(name="TransactorName")
|
|
|
|
|
|
|
+ @JSONField(name = "TransactorName")
|
|
|
private String transactorName;
|
|
private String transactorName;
|
|
|
//CY 办理人证件类型代码(机构客户必传)(参见客户证件类型代码)
|
|
//CY 办理人证件类型代码(机构客户必传)(参见客户证件类型代码)
|
|
|
- @JSONField(name="transactorIdentifyType")
|
|
|
|
|
|
|
+ @JSONField(name = "transactorIdentifyType")
|
|
|
private String transactorIdentifyType;
|
|
private String transactorIdentifyType;
|
|
|
//CY 办理人证件号码(机构客户必传)
|
|
//CY 办理人证件号码(机构客户必传)
|
|
|
- @JSONField(name="transactorIdentifyCode")
|
|
|
|
|
|
|
+ @JSONField(name = "transactorIdentifyCode")
|
|
|
private String transactorIdentifyCode;
|
|
private String transactorIdentifyCode;
|
|
|
//CY 办理人手机号码(机构客户必传)
|
|
//CY 办理人手机号码(机构客户必传)
|
|
|
- @JSONField(name="transactorMobile")
|
|
|
|
|
|
|
+ @JSONField(name = "transactorMobile")
|
|
|
private String transactorMobile;
|
|
private String transactorMobile;
|
|
|
//CY 办理人证件有效期(机构客户必传)
|
|
//CY 办理人证件有效期(机构客户必传)
|
|
|
- @JSONField(name="transactorExpiryDate")
|
|
|
|
|
|
|
+ @JSONField(name = "transactorExpiryDate")
|
|
|
private String transactorExpiryDate;
|
|
private String transactorExpiryDate;
|
|
|
//CY 工作单位名称(个人客户必传)
|
|
//CY 工作单位名称(个人客户必传)
|
|
|
- @JSONField(name="workUnit")
|
|
|
|
|
|
|
+ @JSONField(name = "workUnit")
|
|
|
private String workUnit;
|
|
private String workUnit;
|
|
|
//CY 工作单位地址(个人客户必传)
|
|
//CY 工作单位地址(个人客户必传)
|
|
|
- @JSONField(name="workAddress")
|
|
|
|
|
|
|
+ @JSONField(name = "workAddress")
|
|
|
private String workAddress;
|
|
private String workAddress;
|
|
|
//CY 其他联系方式(个人客户必传)
|
|
//CY 其他联系方式(个人客户必传)
|
|
|
- @JSONField(name="otherContact")
|
|
|
|
|
|
|
+ @JSONField(name = "otherContact")
|
|
|
private String otherContact;
|
|
private String otherContact;
|
|
|
//CY 其他住所地或工作单位地址(个人客户必传)
|
|
//CY 其他住所地或工作单位地址(个人客户必传)
|
|
|
- @JSONField(name="otherWorkAddress")
|
|
|
|
|
|
|
+ @JSONField(name = "otherWorkAddress")
|
|
|
private String otherWorkAddress;
|
|
private String otherWorkAddress;
|
|
|
//CY 联系人信息
|
|
//CY 联系人信息
|
|
|
- @JSONField(name="insuredLinkerList")
|
|
|
|
|
|
|
+ @JSONField(name = "insuredLinkerList")
|
|
|
private List<InsuredLinkerBean> insuredLinkerList;
|
|
private List<InsuredLinkerBean> insuredLinkerList;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -422,13 +427,13 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
this.identifyValidEndDate = customerInfoVo.getIdentifyValidEndDate() + " " + TimeConstants.END_TIME;
|
|
this.identifyValidEndDate = customerInfoVo.getIdentifyValidEndDate() + " " + TimeConstants.END_TIME;
|
|
|
this.addr = customerInfoVo.getAddr();
|
|
this.addr = customerInfoVo.getAddr();
|
|
|
this.email = "123@qq.com";
|
|
this.email = "123@qq.com";
|
|
|
- if(StringUtils.isNotEmpty(customerInfoVo.getEmail())){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(customerInfoVo.getEmail())) {
|
|
|
this.email = customerInfoVo.getEmail();
|
|
this.email = customerInfoVo.getEmail();
|
|
|
}
|
|
}
|
|
|
- if("2".equals(role)){
|
|
|
|
|
- if(customerInfoVo.isOwner()){
|
|
|
|
|
|
|
+ if ("2".equals(role)) {
|
|
|
|
|
+ if (customerInfoVo.isOwner()) {
|
|
|
this.carInsuredRelation = "1";
|
|
this.carInsuredRelation = "1";
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
this.carInsuredRelation = "2";
|
|
this.carInsuredRelation = "2";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -436,49 +441,50 @@ 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, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
|
|
|
- return Arrays.asList(new CustomerDto(ownerInfo, "3",huaTaiConfigureParameters), new CustomerDto(policyHolderInfo, "1",huaTaiConfigureParameters), new CustomerDto(insuredPersonInfo, "2",huaTaiConfigureParameters));
|
|
|
|
|
|
|
+ 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));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class InsuredLinkerBean implements Serializable{
|
|
|
|
|
|
|
+ public static class InsuredLinkerBean implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -7819712018066777471L;
|
|
private static final long serialVersionUID = -7819712018066777471L;
|
|
|
// Y 联系人名称
|
|
// Y 联系人名称
|
|
|
- @JSONField(name="linkName")
|
|
|
|
|
|
|
+ @JSONField(name = "linkName")
|
|
|
private String linkName;
|
|
private String linkName;
|
|
|
// Y 联系人关联关系(默认传01,对应本人)
|
|
// Y 联系人关联关系(默认传01,对应本人)
|
|
|
- @JSONField(name="linkerRelation")
|
|
|
|
|
|
|
+ @JSONField(name = "linkerRelation")
|
|
|
private String linkerRelation;
|
|
private String linkerRelation;
|
|
|
// CY 单位电话(机构客户出单必传)
|
|
// CY 单位电话(机构客户出单必传)
|
|
|
- @JSONField(name="unitPhoneNumber")
|
|
|
|
|
|
|
+ @JSONField(name = "unitPhoneNumber")
|
|
|
private String unitPhoneNumber;
|
|
private String unitPhoneNumber;
|
|
|
//Y 省(需传省国标码)
|
|
//Y 省(需传省国标码)
|
|
|
- @JSONField(name="province")
|
|
|
|
|
|
|
+ @JSONField(name = "province")
|
|
|
private String province;
|
|
private String province;
|
|
|
//Y 市(需传市国标码)
|
|
//Y 市(需传市国标码)
|
|
|
- @JSONField(name="city")
|
|
|
|
|
|
|
+ @JSONField(name = "city")
|
|
|
private String city;
|
|
private String city;
|
|
|
//Y 区(需传区国标码)
|
|
//Y 区(需传区国标码)
|
|
|
- @JSONField(name="district")
|
|
|
|
|
|
|
+ @JSONField(name = "district")
|
|
|
private String district;
|
|
private String district;
|
|
|
//Y 地址
|
|
//Y 地址
|
|
|
- @JSONField(name="street")
|
|
|
|
|
|
|
+ @JSONField(name = "street")
|
|
|
private String street;
|
|
private String street;
|
|
|
// Y 电话
|
|
// Y 电话
|
|
|
- @JSONField(name="mobile")
|
|
|
|
|
|
|
+ @JSONField(name = "mobile")
|
|
|
private String mobile;
|
|
private String mobile;
|
|
|
// CY 邮箱(电子保单必传)
|
|
// CY 邮箱(电子保单必传)
|
|
|
- @JSONField(name="email")
|
|
|
|
|
|
|
+ @JSONField(name = "email")
|
|
|
private String email;
|
|
private String email;
|
|
|
|
|
|
|
|
public InsuredLinkerBean(CustomerInfoVo customerInfoVo, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
public InsuredLinkerBean(CustomerInfoVo customerInfoVo, HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
@@ -490,7 +496,7 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
this.street = customerInfoVo.getAddr();
|
|
this.street = customerInfoVo.getAddr();
|
|
|
this.mobile = customerInfoVo.getMobile();
|
|
this.mobile = customerInfoVo.getMobile();
|
|
|
this.email = "123@qq.com";
|
|
this.email = "123@qq.com";
|
|
|
- if(StringUtils.isNotEmpty(customerInfoVo.getEmail())){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(customerInfoVo.getEmail())) {
|
|
|
this.email = customerInfoVo.getEmail();
|
|
this.email = customerInfoVo.getEmail();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -500,14 +506,14 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest {
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class SaleInfoDto implements Serializable{
|
|
|
|
|
|
|
+ public static class SaleInfoDto implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 2631084372177408934L;
|
|
private static final long serialVersionUID = 2631084372177408934L;
|
|
|
// 操作机构代码
|
|
// 操作机构代码
|
|
|
- @JSONField(name="agentCode")
|
|
|
|
|
|
|
+ @JSONField(name = "agentCode")
|
|
|
private String agentCode;
|
|
private String agentCode;
|
|
|
// 操作员代码
|
|
// 操作员代码
|
|
|
- @JSONField(name="agreementNo")
|
|
|
|
|
|
|
+ @JSONField(name = "agreementNo")
|
|
|
private String agreementNo;
|
|
private String agreementNo;
|
|
|
|
|
|
|
|
public SaleInfoDto(HuaTaiConfigureParameters huaTaiConfigureParameters) {
|
|
public SaleInfoDto(HuaTaiConfigureParameters huaTaiConfigureParameters) {
|