|
|
@@ -293,6 +293,9 @@ 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());
|