|
|
@@ -269,6 +269,28 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
//构造地区
|
|
|
buildRegion(m, yaQuoteInfoVo);
|
|
|
}else {
|
|
|
+ //车主
|
|
|
+ CustomerInfoVo owner = yaQuoteInfoVo.getOwnerInfo();
|
|
|
+ if (!"0".equals(owner.getProperty())) {
|
|
|
+ PersonAreaVo ownerPersonAreaVo = sysAreaService.queryByAddressYc(owner.getAddr(), owner.getIdentifyNumber());
|
|
|
+ if (!Objects.isNull(ownerPersonAreaVo)) {
|
|
|
+ m.getRequestLabel().getCondition().getVhlowner().setCProvince(ownerPersonAreaVo.getProvinceCode());
|
|
|
+ m.getRequestLabel().getCondition().getVhlowner().setCCity(ownerPersonAreaVo.getCityCode());
|
|
|
+ m.getRequestLabel().getCondition().getVhlowner().setCCounty(ownerPersonAreaVo.getCountyCode());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ //投保人
|
|
|
+ CustomerInfoVo applicant = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
|
+ if (!"0".equals(applicant.getProperty())) {
|
|
|
+ PersonAreaVo applicantPersonAreaVo = sysAreaService.queryByAddressYc(applicant.getAddr(), applicant.getIdentifyNumber());
|
|
|
+ if (!Objects.isNull(applicantPersonAreaVo)) {
|
|
|
+ m.getRequestLabel().getCondition().getApplicant().setCProvince(applicantPersonAreaVo.getProvinceCode());
|
|
|
+ m.getRequestLabel().getCondition().getApplicant().setCCity(applicantPersonAreaVo.getCityCode());
|
|
|
+ m.getRequestLabel().getCondition().getApplicant().setCCounty(applicantPersonAreaVo.getCountyCode());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
//被保人
|
|
|
CustomerInfoVo insured = yaQuoteInfoVo.getInsuredPersonInfo();
|
|
|
PersonAreaVo insuredPersonAreaVo = sysAreaService.queryByAddressYc(insured.getAddr(), insured.getIdentifyNumber());
|