|
|
@@ -8,7 +8,6 @@ import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.modules.order.entity.vo.guoren.GuoRenSpecialAgreementVo;
|
|
|
-import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
@@ -70,15 +69,9 @@ public class InsuranceSlipReq {
|
|
|
*/
|
|
|
prpTinsured.setAppliName(policyHolderInfo.getName());
|
|
|
//投保人性质 appliInsuredNature 字符串 Y 3自然人,4法人
|
|
|
- if(StringUtils.isBlank(policyHolderInfo.getProperty()) || "0".equals(policyHolderInfo.getProperty())) {
|
|
|
- prpTinsured.setAppliInsuredNature("3");
|
|
|
- prpTinsured.setAppliIdentifyType("01");
|
|
|
- prpTinsured.setAppliIdentifyNumber(policyHolderInfo.getIdentifyNumber());
|
|
|
- }else {
|
|
|
- prpTinsured.setAppliInsuredNature("4");
|
|
|
- prpTinsured.setAppliIdentifyType("74");
|
|
|
- prpTinsured.setAppliIdentifyNumber(policyHolderInfo.getOrganizationCode());
|
|
|
- }
|
|
|
+ prpTinsured.setAppliInsuredNature("3");
|
|
|
+ prpTinsured.setAppliIdentifyType("01");
|
|
|
+ prpTinsured.setAppliIdentifyNumber(policyHolderInfo.getIdentifyNumber());
|
|
|
prpTinsured.setAppliMobile(policyHolderInfo.getMobile());
|
|
|
prpTinsured.setAppliAddress(policyHolderInfo.getAddr());
|
|
|
prpTinsured.setAppliPostCode("");
|
|
|
@@ -91,17 +84,10 @@ public class InsuranceSlipReq {
|
|
|
* 被保人信息
|
|
|
*/
|
|
|
prpTinsured.setInsuredName(insuredPersonInfo.getName());
|
|
|
-
|
|
|
//投保人性质 appliInsuredNature 字符串 Y 3自然人,4法人
|
|
|
- if(StringUtils.isBlank(insuredPersonInfo.getProperty()) || "0".equals(insuredPersonInfo.getProperty())) {
|
|
|
- prpTinsured.setInsuredInsuredNature("3");
|
|
|
- prpTinsured.setInsuredIdentifyType("01");
|
|
|
- prpTinsured.setInsuredIdentifyNumber(policyHolderInfo.getIdentifyNumber());
|
|
|
- }else {
|
|
|
- prpTinsured.setInsuredInsuredNature("4");
|
|
|
- prpTinsured.setInsuredIdentifyType("74");
|
|
|
- prpTinsured.setInsuredIdentifyNumber(policyHolderInfo.getOrganizationCode());
|
|
|
- }
|
|
|
+ prpTinsured.setInsuredInsuredNature("3");
|
|
|
+ prpTinsured.setInsuredIdentifyType("01");
|
|
|
+ prpTinsured.setInsuredIdentifyNumber(insuredPersonInfo.getIdentifyNumber());
|
|
|
prpTinsured.setInsuredMobile(insuredPersonInfo.getMobile());
|
|
|
prpTinsured.setInsuredAddress(insuredPersonInfo.getAddr());
|
|
|
prpTinsured.setInsuredPostCode("");
|
|
|
@@ -304,23 +290,19 @@ public class InsuranceSlipReq {
|
|
|
CarInfoVo carInfo = yaQuoteInfoVo.getCarInfo();
|
|
|
|
|
|
this.ocrCarOwner = ownerInfo.getName();
|
|
|
-
|
|
|
- this.ocrCarOwnerIdentifyNumber = (StringUtils.isBlank(ownerInfo.getProperty()) || !"0".equals(ownerInfo.getProperty())) ?
|
|
|
- ownerInfo.getIdentifyNumber() : ownerInfo.getOrganizationCode();
|
|
|
+ this.ocrCarOwnerIdentifyNumber = ownerInfo.getIdentifyNumber();
|
|
|
this.ocrCarAddress = ownerInfo.getAddr();
|
|
|
this.ocrIdvalidStartDate = ownerInfo.getIdentifyValidDate();
|
|
|
this.ocrIdvalidDate = ownerInfo.getIdentifyValidEndDate();
|
|
|
|
|
|
this.ocrInsuredName = insuredPersonInfo.getName();
|
|
|
- this.ocrInsuredIdentifyNumber = (StringUtils.isBlank(insuredPersonInfo.getProperty()) || !"0".equals(insuredPersonInfo.getProperty())) ?
|
|
|
- insuredPersonInfo.getIdentifyNumber() : insuredPersonInfo.getOrganizationCode();
|
|
|
+ this.ocrInsuredIdentifyNumber = insuredPersonInfo.getIdentifyNumber();
|
|
|
this.ocrInsuredAddress = insuredPersonInfo.getAddr();
|
|
|
this.ocrInsuredIDValidStartDate = insuredPersonInfo.getIdentifyValidDate();
|
|
|
this.ocrInsuredIDValidDate = insuredPersonInfo.getIdentifyValidEndDate();
|
|
|
|
|
|
this.ocrAppliName = policyHolderInfo.getName();
|
|
|
- this.ocrAppliIdentifyNumber = (StringUtils.isBlank(policyHolderInfo.getProperty()) || !"0".equals(policyHolderInfo.getProperty())) ?
|
|
|
- policyHolderInfo.getIdentifyNumber() : policyHolderInfo.getOrganizationCode();
|
|
|
+ this.ocrAppliIdentifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
|
this.ocrAppliAddress = policyHolderInfo.getAddr();
|
|
|
this.ocrAppliIDValidStartDate = policyHolderInfo.getIdentifyValidDate();
|
|
|
this.ocrAppliIDValidDate = policyHolderInfo.getIdentifyValidEndDate();
|