|
|
@@ -293,14 +293,13 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
}
|
|
|
//被保人
|
|
|
CustomerInfoVo insured = yaQuoteInfoVo.getInsuredPersonInfo();
|
|
|
- if (StringUtils.isNullOrEmpty(insured.getIdentifyNumber())) {
|
|
|
- throw new SystemException("被保人只能为个人信息");
|
|
|
- }
|
|
|
- PersonAreaVo insuredPersonAreaVo = sysAreaService.queryByAddressYc(insured.getAddr(), insured.getIdentifyNumber());
|
|
|
- if (!Objects.isNull(insuredPersonAreaVo)) {
|
|
|
- m.getRequestLabel().getCondition().getInsured().setCProvince(insuredPersonAreaVo.getProvinceCode());
|
|
|
- m.getRequestLabel().getCondition().getInsured().setCCity(insuredPersonAreaVo.getCityCode());
|
|
|
- m.getRequestLabel().getCondition().getInsured().setCCounty(insuredPersonAreaVo.getCountyCode());
|
|
|
+ if (!"0".equals(insured.getProperty())) {
|
|
|
+ PersonAreaVo insuredPersonAreaVo = sysAreaService.queryByAddressYc(insured.getAddr(), insured.getIdentifyNumber());
|
|
|
+ if (!Objects.isNull(insuredPersonAreaVo)) {
|
|
|
+ m.getRequestLabel().getCondition().getInsured().setCProvince(insuredPersonAreaVo.getProvinceCode());
|
|
|
+ m.getRequestLabel().getCondition().getInsured().setCCity(insuredPersonAreaVo.getCityCode());
|
|
|
+ m.getRequestLabel().getCondition().getInsured().setCCounty(insuredPersonAreaVo.getCountyCode());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -771,14 +770,21 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
CustomerInfoVo applyInfo = order.getApplyinfo().toJavaObject(CustomerInfoVo.class);
|
|
|
//组装参数
|
|
|
Audit m = Audit.buildAuditParam(ownerInfo, insureInfo, applyInfo, ycConfigureParameters, iac);
|
|
|
+ String property = insureInfo.getProperty();
|
|
|
+ if (StringUtils.isNotEmpty(property) && "0".equals(property)) {
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCProvince(insureInfo.getProvince());
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCity(insureInfo.getCity());
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCounty(insureInfo.getCounty());
|
|
|
+ }else {
|
|
|
|
|
|
- //投保人地区信息
|
|
|
- PersonAreaVo personAreaVo = sysAreaService.queryByAddressYc(insureInfo.getAddr(), insureInfo.getIdentifyNumber());
|
|
|
+ //投保人地区信息
|
|
|
+ PersonAreaVo personAreaVo = sysAreaService.queryByAddressYc(insureInfo.getAddr(), insureInfo.getIdentifyNumber());
|
|
|
|
|
|
- //构造被保人地区
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCProvince(personAreaVo.getProvinceCode());
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCCity(personAreaVo.getCityCode());
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCCounty(personAreaVo.getCountyCode());
|
|
|
+ //构造被保人地区
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCProvince(personAreaVo.getProvinceCode());
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCity(personAreaVo.getCityCode());
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCounty(personAreaVo.getCountyCode());
|
|
|
+ }
|
|
|
|
|
|
try {
|
|
|
AuditResponse rd = yongchengRequestApiComponents.newXnyUnderwritingService(m);
|