|
|
@@ -682,26 +682,30 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
? insuredAddress
|
|
|
: orgClient.queryByAddress(quoteVo.getPolicyHolderInfo().getAddr(), quoteVo.getPolicyHolderInfo().getIdentifyNumber());
|
|
|
|
|
|
- quoteVo.getOwnersInfo().setProvinceCode(ownerAddress.getData().getProvinceCode());
|
|
|
- quoteVo.getOwnersInfo().setProvince(ownerAddress.getData().getProvinceName());
|
|
|
- quoteVo.getOwnersInfo().setCityCode(ownerAddress.getData().getCityCode());
|
|
|
- quoteVo.getOwnersInfo().setCity(ownerAddress.getData().getCityName());
|
|
|
- quoteVo.getOwnersInfo().setCountyCode(ownerAddress.getData().getCountyCode());
|
|
|
- quoteVo.getOwnersInfo().setCounty(ownerAddress.getData().getCountyName());
|
|
|
-
|
|
|
- quoteVo.getInsuredPersonInfo().setProvinceCode(insuredAddress.getData().getProvinceCode());
|
|
|
- quoteVo.getInsuredPersonInfo().setProvince(insuredAddress.getData().getProvinceName());
|
|
|
- quoteVo.getInsuredPersonInfo().setCityCode(insuredAddress.getData().getCityCode());
|
|
|
- quoteVo.getInsuredPersonInfo().setCity(insuredAddress.getData().getCityName());
|
|
|
- quoteVo.getInsuredPersonInfo().setCountyCode(insuredAddress.getData().getCountyCode());
|
|
|
- quoteVo.getInsuredPersonInfo().setCounty(insuredAddress.getData().getCountyName());
|
|
|
-
|
|
|
- quoteVo.getPolicyHolderInfo().setProvinceCode(policyAddress.getData().getProvinceCode());
|
|
|
- quoteVo.getPolicyHolderInfo().setProvince(policyAddress.getData().getProvinceName());
|
|
|
- quoteVo.getPolicyHolderInfo().setCityCode(policyAddress.getData().getCityCode());
|
|
|
- quoteVo.getPolicyHolderInfo().setCity(policyAddress.getData().getCityName());
|
|
|
- quoteVo.getPolicyHolderInfo().setCountyCode(policyAddress.getData().getCountyCode());
|
|
|
- quoteVo.getPolicyHolderInfo().setCounty(policyAddress.getData().getCountyName());
|
|
|
+ if (null != ownerAddress.getData()){
|
|
|
+ quoteVo.getOwnersInfo().setProvinceCode(ownerAddress.getData().getProvinceCode());
|
|
|
+ quoteVo.getOwnersInfo().setProvince(ownerAddress.getData().getProvinceName());
|
|
|
+ quoteVo.getOwnersInfo().setCityCode(ownerAddress.getData().getCityCode());
|
|
|
+ quoteVo.getOwnersInfo().setCity(ownerAddress.getData().getCityName());
|
|
|
+ quoteVo.getOwnersInfo().setCountyCode(ownerAddress.getData().getCountyCode());
|
|
|
+ quoteVo.getOwnersInfo().setCounty(ownerAddress.getData().getCountyName());
|
|
|
+ }
|
|
|
+ if (null != insuredAddress.getData()) {
|
|
|
+ quoteVo.getInsuredPersonInfo().setProvinceCode(insuredAddress.getData().getProvinceCode());
|
|
|
+ quoteVo.getInsuredPersonInfo().setProvince(insuredAddress.getData().getProvinceName());
|
|
|
+ quoteVo.getInsuredPersonInfo().setCityCode(insuredAddress.getData().getCityCode());
|
|
|
+ quoteVo.getInsuredPersonInfo().setCity(insuredAddress.getData().getCityName());
|
|
|
+ quoteVo.getInsuredPersonInfo().setCountyCode(insuredAddress.getData().getCountyCode());
|
|
|
+ quoteVo.getInsuredPersonInfo().setCounty(insuredAddress.getData().getCountyName());
|
|
|
+ }
|
|
|
+ if (null != policyAddress.getData()) {
|
|
|
+ quoteVo.getPolicyHolderInfo().setProvinceCode(policyAddress.getData().getProvinceCode());
|
|
|
+ quoteVo.getPolicyHolderInfo().setProvince(policyAddress.getData().getProvinceName());
|
|
|
+ quoteVo.getPolicyHolderInfo().setCityCode(policyAddress.getData().getCityCode());
|
|
|
+ quoteVo.getPolicyHolderInfo().setCity(policyAddress.getData().getCityName());
|
|
|
+ quoteVo.getPolicyHolderInfo().setCountyCode(policyAddress.getData().getCountyCode());
|
|
|
+ quoteVo.getPolicyHolderInfo().setCounty(policyAddress.getData().getCountyName());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|