|
@@ -1670,7 +1670,7 @@ public class QuoteRequest {
|
|
|
@JacksonXmlProperty(localName = "CMassCarMrk")
|
|
@JacksonXmlProperty(localName = "CMassCarMrk")
|
|
|
private String CMassCarMrk;
|
|
private String CMassCarMrk;
|
|
|
|
|
|
|
|
- public Applicant(CustomerInfoVo ownerInfo, CustomerInfoVo policyHolderInfo,YcApiConfigurationProperties ycApiConfigurationProperties) {
|
|
|
|
|
|
|
+ public Applicant(CustomerInfoVo ownerInfo, CustomerInfoVo policyHolderInfo,CustomerInfoVo insuredPersonInfo, YcApiConfigurationProperties ycApiConfigurationProperties) {
|
|
|
|
|
|
|
|
//投保人类型: 0:法人 1:个人(中国籍) 2: 个人(非中国籍)
|
|
//投保人类型: 0:法人 1:个人(中国籍) 2: 个人(非中国籍)
|
|
|
String property = policyHolderInfo.getProperty();
|
|
String property = policyHolderInfo.getProperty();
|
|
@@ -1724,7 +1724,7 @@ public class QuoteRequest {
|
|
|
if(StringUtils.isNotEmpty(this.getCCntrNme())){
|
|
if(StringUtils.isNotEmpty(this.getCCntrNme())){
|
|
|
this.setCCntrNme(policyHolderInfo.getName());
|
|
this.setCCntrNme(policyHolderInfo.getName());
|
|
|
}
|
|
}
|
|
|
- this.setCRelCde(ownerInfo.getName().equals(policyHolderInfo.getName()) ? "601005" : "601008");
|
|
|
|
|
|
|
+ this.setCRelCde(insuredPersonInfo.getName().equals(policyHolderInfo.getName()) ? "601005" : "601008");
|
|
|
this.setTCertfClsValiDate(policyHolderInfo.getIdentifyValidEndDate());
|
|
this.setTCertfClsValiDate(policyHolderInfo.getIdentifyValidEndDate());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1980,7 +1980,7 @@ public class QuoteRequest {
|
|
|
@JacksonXmlProperty(localName = "CTrdCde")
|
|
@JacksonXmlProperty(localName = "CTrdCde")
|
|
|
private String CTrdCde;
|
|
private String CTrdCde;
|
|
|
|
|
|
|
|
- public Insured(CustomerInfoVo ownerInfo, CustomerInfoVo insuredPersonInfo) {
|
|
|
|
|
|
|
+ public Insured(CustomerInfoVo ownerInfo, CustomerInfoVo policyHolderInfo, CustomerInfoVo insuredPersonInfo) {
|
|
|
|
|
|
|
|
//被保人类型: 0:法人 1:个人(中国籍) 2: 个人(非中国籍)
|
|
//被保人类型: 0:法人 1:个人(中国籍) 2: 个人(非中国籍)
|
|
|
String property = insuredPersonInfo.getProperty();
|
|
String property = insuredPersonInfo.getProperty();
|
|
@@ -2017,7 +2017,7 @@ public class QuoteRequest {
|
|
|
this.setCCounty(insuredPersonInfo.getCountyCode());
|
|
this.setCCounty(insuredPersonInfo.getCountyCode());
|
|
|
this.setTCertfClsValiDate(insuredPersonInfo.getIdentifyValidEndDate());
|
|
this.setTCertfClsValiDate(insuredPersonInfo.getIdentifyValidEndDate());
|
|
|
// insured.setCCntrNme(insuredPersonInfo.getName());
|
|
// insured.setCCntrNme(insuredPersonInfo.getName());
|
|
|
- this.setCRelCdes(ownerInfo.getName().equals(insuredPersonInfo.getName()) ? "601005" : "601008");
|
|
|
|
|
|
|
+ this.setCRelCdes(policyHolderInfo.getName().equals(insuredPersonInfo.getName()) ? "601005" : "601008");
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -2258,14 +2258,14 @@ public class QuoteRequest {
|
|
|
* 投保人信息
|
|
* 投保人信息
|
|
|
* 代码:applicant
|
|
* 代码:applicant
|
|
|
*/
|
|
*/
|
|
|
- Condition.Applicant applicant = new Condition.Applicant(ownerInfo,policyHolderInfo,ycApiConfigurationProperties);
|
|
|
|
|
|
|
+ Condition.Applicant applicant = new Condition.Applicant(ownerInfo,policyHolderInfo,insuredPersonInfo,ycApiConfigurationProperties);
|
|
|
condition.setApplicant(applicant);
|
|
condition.setApplicant(applicant);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 被保人信息
|
|
* 被保人信息
|
|
|
* 代码:insured
|
|
* 代码:insured
|
|
|
*/
|
|
*/
|
|
|
- Condition.Insured insured = new Condition.Insured(ownerInfo, insuredPersonInfo);
|
|
|
|
|
|
|
+ Condition.Insured insured = new Condition.Insured(ownerInfo, policyHolderInfo, insuredPersonInfo);
|
|
|
condition.setInsured(insured);
|
|
condition.setInsured(insured);
|
|
|
|
|
|
|
|
/**
|
|
/**
|