|
@@ -406,12 +406,19 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
private String vehicleOwnerNature;
|
|
private String vehicleOwnerNature;
|
|
|
|
|
|
|
|
public CarOwnerInfoDTO(CustomerInfoVo customerInfoVo) {
|
|
public CarOwnerInfoDTO(CustomerInfoVo customerInfoVo) {
|
|
|
|
|
+ if(StringUtils.isBlank(customerInfoVo.getProperty()) || !"0".equals(customerInfoVo.getProperty())) {
|
|
|
|
|
+ this.ownerIdentifyNumber = customerInfoVo.getIdentifyNumber();
|
|
|
|
|
+ this.ownerIdentifyType = "01";
|
|
|
|
|
+ this.vehicleOwnerNature = "1";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.ownerIdentifyNumber = customerInfoVo.getOrganizationCode();
|
|
|
|
|
+ this.ownerIdentifyType = "73";
|
|
|
|
|
+ this.vehicleOwnerNature = "3";
|
|
|
|
|
+ }
|
|
|
this.carOwner = customerInfoVo.getName();
|
|
this.carOwner = customerInfoVo.getName();
|
|
|
this.mobile = customerInfoVo.getMobile();
|
|
this.mobile = customerInfoVo.getMobile();
|
|
|
this.ownerAddress = customerInfoVo.getAddr();
|
|
this.ownerAddress = customerInfoVo.getAddr();
|
|
|
- this.ownerIdentifyNumber = customerInfoVo.getIdentifyNumber();
|
|
|
|
|
- this.ownerIdentifyType = "01";
|
|
|
|
|
- this.vehicleOwnerNature = "1";
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1071,19 +1078,100 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
@JsonProperty("validDate")
|
|
@JsonProperty("validDate")
|
|
|
private String validDate;
|
|
private String validDate;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 授权人姓名 说明:投保人为法人时必传
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("certigierName")
|
|
|
|
|
+ private String certigierName;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 授权人证件类型 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("certigierType")
|
|
|
|
|
+ private String certigierType;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 授权人证件号码 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("certigierNumber")
|
|
|
|
|
+ private String certigierNumber;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 授权人证件号码有效期 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("certigierNumValidDate")
|
|
|
|
|
+ private String certigierNumValidDate;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 负责人姓名 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("chiefName")
|
|
|
|
|
+ private String chiefName;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 负责人证件类型 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("chiefType")
|
|
|
|
|
+ private String chiefType;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 负责人证件号码 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("chiefNumber")
|
|
|
|
|
+ private String chiefNumber;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 负责人证件号码有效期 说明:投保人为法人时必传;
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("chiefNumValidDate")
|
|
|
|
|
+ private String chiefNumValidDate;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 民族
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("nation")
|
|
|
|
|
+ private String nation;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 客户性质为单位时,单位性质必传
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("businessSort")
|
|
|
|
|
+ private String businessSort;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
public InsuredListDTO(CustomerInfoVo policyHolderInfo, String insuredFlag) {
|
|
public InsuredListDTO(CustomerInfoVo policyHolderInfo, String insuredFlag) {
|
|
|
this.occupation = "030199";
|
|
this.occupation = "030199";
|
|
|
this.address = policyHolderInfo.getAddr();
|
|
this.address = policyHolderInfo.getAddr();
|
|
|
- this.identifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
|
|
|
- this.identifyType = "01";
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if(StringUtils.isBlank(policyHolderInfo.getProperty()) || !"0".equals(policyHolderInfo.getProperty())) {
|
|
|
|
|
+ this.identifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
|
|
|
+ this.identifyType = "01";
|
|
|
|
|
+ this.insuredNature = "3";
|
|
|
|
|
+ this.insuredType = "1";
|
|
|
|
|
+ int gender = IdcardUtil.getGenderByIdCard(policyHolderInfo.getIdentifyNumber());
|
|
|
|
|
+ this.sex = gender == 1 ? "1" : "2";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.businessSort = "900";
|
|
|
|
|
+ this.businessSort = "900";
|
|
|
|
|
+ this.identifyNumber = policyHolderInfo.getOrganizationCode();
|
|
|
|
|
+ this.identifyType = "73";
|
|
|
|
|
+ this.insuredNature = "4";
|
|
|
|
|
+ this.insuredType = "2";
|
|
|
|
|
+ this.sex = "9";
|
|
|
|
|
+ this.certigierName = policyHolderInfo.getLegalPerson();
|
|
|
|
|
+ this.certigierType = "01";
|
|
|
|
|
+ this.certigierNumber = policyHolderInfo.getLeaderIdentifyNumber();
|
|
|
|
|
+ this.certigierNumValidDate = policyHolderInfo.getLeaderOtherEffectiveDate();
|
|
|
|
|
+ this.chiefName = policyHolderInfo.getLegalPerson();
|
|
|
|
|
+ this.chiefType = "01";
|
|
|
|
|
+ this.chiefNumber = policyHolderInfo.getLeaderIdentifyNumber();
|
|
|
|
|
+ this.chiefNumValidDate = policyHolderInfo.getLeaderOtherEffectiveDate();
|
|
|
|
|
+ }
|
|
|
this.insuredFlag = insuredFlag;
|
|
this.insuredFlag = insuredFlag;
|
|
|
this.insuredName = policyHolderInfo.getName();
|
|
this.insuredName = policyHolderInfo.getName();
|
|
|
- this.insuredNature = "3";
|
|
|
|
|
- this.insuredType = "1";
|
|
|
|
|
this.longAddress = policyHolderInfo.getAddr();
|
|
this.longAddress = policyHolderInfo.getAddr();
|
|
|
this.mobile = policyHolderInfo.getMobile();
|
|
this.mobile = policyHolderInfo.getMobile();
|
|
|
- int gender = IdcardUtil.getGenderByIdCard(policyHolderInfo.getIdentifyNumber());
|
|
|
|
|
- this.sex = gender == 1 ? "1" : "2";
|
|
|
|
|
this.validDate = policyHolderInfo.getIdentifyValidEndDate();
|
|
this.validDate = policyHolderInfo.getIdentifyValidEndDate();
|
|
|
}
|
|
}
|
|
|
|
|
|