|
@@ -586,9 +586,9 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
PersonAreaVo personAreaVo = sysAreaService.queryByAddressYc(insureInfo.getAddr(), insureInfo.getIdentifyNumber());
|
|
PersonAreaVo personAreaVo = sysAreaService.queryByAddressYc(insureInfo.getAddr(), insureInfo.getIdentifyNumber());
|
|
|
|
|
|
|
|
//构造被保人地区
|
|
//构造被保人地区
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCProvince(personAreaVo.getProvinceCode().toString());
|
|
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCCity(personAreaVo.getCityCode().toString());
|
|
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCCounty(personAreaVo.getCountyCode().toString());
|
|
|
|
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCProvince(personAreaVo.getProvinceCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCity(personAreaVo.getCityCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCounty(personAreaVo.getCountyCode());
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
AuditResponse rd = yongchengRequestApiComponents.newXnyUnderwritingService(m);
|
|
AuditResponse rd = yongchengRequestApiComponents.newXnyUnderwritingService(m);
|
|
@@ -1408,19 +1408,6 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
//投保人
|
|
//投保人
|
|
|
CustomerInfoVo applicant = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
CustomerInfoVo applicant = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
|
|
|
|
|
|
- //车主省市区
|
|
|
|
|
- List<String> ownerProvinceData = owner.getProvinceData();
|
|
|
|
|
- //被保人省市区
|
|
|
|
|
- List<String> insuredProvinceData = insured.getProvinceData();
|
|
|
|
|
- //投保人 省市区
|
|
|
|
|
- List<String> applicantProvinceData = applicant.getProvinceData();
|
|
|
|
|
-
|
|
|
|
|
- if (CollUtil.isNotEmpty(ownerProvinceData) && CollUtil.isNotEmpty(insuredProvinceData) && CollUtil.isNotEmpty(applicantProvinceData)) {
|
|
|
|
|
- //构造参数
|
|
|
|
|
- buildRegionParam(m, yaQuoteInfoVo, ownerProvinceData, insuredProvinceData, applicantProvinceData);
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
//车主地区信息
|
|
//车主地区信息
|
|
|
PersonAreaVo ownerPersonAreaVo = sysAreaService.queryByAddressYc(owner.getAddr(), owner.getIdentifyNumber());
|
|
PersonAreaVo ownerPersonAreaVo = sysAreaService.queryByAddressYc(owner.getAddr(), owner.getIdentifyNumber());
|
|
|
PersonAreaVo insuredPersonAreaVo;
|
|
PersonAreaVo insuredPersonAreaVo;
|
|
@@ -1446,26 +1433,23 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!Objects.isNull(ownerPersonAreaVo)) {
|
|
if (!Objects.isNull(ownerPersonAreaVo)) {
|
|
|
- ownerProvinceData.add(ownerPersonAreaVo.getCountyCode().toString());
|
|
|
|
|
- ownerProvinceData.add(ownerPersonAreaVo.getCityCode().toString());
|
|
|
|
|
- ownerProvinceData.add(ownerPersonAreaVo.getProvinceCode().toString());
|
|
|
|
|
|
|
+ m.getRequestLabel().getCondition().getVhlowner().setCProvince(ownerPersonAreaVo.getProvinceCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getVhlowner().setCCity(ownerPersonAreaVo.getCityCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getVhlowner().setCCounty(ownerPersonAreaVo.getCountyCode());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!Objects.isNull(insuredPersonAreaVo)) {
|
|
if (!Objects.isNull(insuredPersonAreaVo)) {
|
|
|
- insuredProvinceData.add(insuredPersonAreaVo.getCountyCode().toString());
|
|
|
|
|
- insuredProvinceData.add(insuredPersonAreaVo.getCityCode().toString());
|
|
|
|
|
- insuredProvinceData.add(insuredPersonAreaVo.getProvinceCode().toString());
|
|
|
|
|
|
|
+ m.getRequestLabel().getCondition().getInsured().setCProvince(insuredPersonAreaVo.getProvinceCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getInsured().setCCity(insuredPersonAreaVo.getCityCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getInsured().setCCounty(insuredPersonAreaVo.getCountyCode());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!Objects.isNull(applicantPersonAreaVo)) {
|
|
if (!Objects.isNull(applicantPersonAreaVo)) {
|
|
|
- applicantProvinceData.add(applicantPersonAreaVo.getCountyCode().toString());
|
|
|
|
|
- applicantProvinceData.add(applicantPersonAreaVo.getCityCode().toString());
|
|
|
|
|
- applicantProvinceData.add(applicantPersonAreaVo.getProvinceCode().toString());
|
|
|
|
|
|
|
+ m.getRequestLabel().getCondition().getApplicant().setCProvince(applicantPersonAreaVo.getProvinceCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getApplicant().setCCity(applicantPersonAreaVo.getCityCode());
|
|
|
|
|
+ m.getRequestLabel().getCondition().getApplicant().setCCounty(applicantPersonAreaVo.getCountyCode());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //构造参数
|
|
|
|
|
- buildRegionParam(m, yaQuoteInfoVo, ownerProvinceData, insuredProvinceData, applicantProvinceData);
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1555,20 +1539,7 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
|
|
|
|
|
private void buildRegionParam(Ruote m, BaseQuoteInfoVo yaQuoteInfoVo, List<String> ownerProvinceData,
|
|
private void buildRegionParam(Ruote m, BaseQuoteInfoVo yaQuoteInfoVo, List<String> ownerProvinceData,
|
|
|
List<String> insuredProvinceData, List<String> applicantProvinceData) {
|
|
List<String> insuredProvinceData, List<String> applicantProvinceData) {
|
|
|
- yaQuoteInfoVo.getOwnerInfo().setProvinceData(ownerProvinceData);
|
|
|
|
|
- m.getRequestLabel().getCondition().getVhlowner().setCProvince(ownerProvinceData.get(2));
|
|
|
|
|
- m.getRequestLabel().getCondition().getVhlowner().setCCity(ownerProvinceData.get(1));
|
|
|
|
|
- m.getRequestLabel().getCondition().getVhlowner().setCCounty(ownerProvinceData.get(0));
|
|
|
|
|
-
|
|
|
|
|
- yaQuoteInfoVo.getInsuredPersonInfo().setProvinceData(insuredProvinceData);
|
|
|
|
|
- m.getRequestLabel().getCondition().getInsured().setCProvince(insuredProvinceData.get(2));
|
|
|
|
|
- m.getRequestLabel().getCondition().getInsured().setCCity(insuredProvinceData.get(1));
|
|
|
|
|
- m.getRequestLabel().getCondition().getInsured().setCCounty(insuredProvinceData.get(0));
|
|
|
|
|
-
|
|
|
|
|
- yaQuoteInfoVo.getPolicyHolderInfo().setProvinceData(applicantProvinceData);
|
|
|
|
|
- m.getRequestLabel().getCondition().getApplicant().setCProvince(applicantProvinceData.get(2));
|
|
|
|
|
- m.getRequestLabel().getCondition().getApplicant().setCCity(applicantProvinceData.get(1));
|
|
|
|
|
- m.getRequestLabel().getCondition().getApplicant().setCCounty(applicantProvinceData.get(0));
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|