瀏覽代碼

修改永诚报价的bug

785834757 5 天之前
父節點
當前提交
b995d46cde

+ 6 - 6
tenant/insurance/quotation-yongcheng/src/main/java/com/jzg/quotation/yongcheng/api/entity/request/QuoteRequest.java

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