|
|
@@ -594,17 +594,28 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
//组装参数
|
|
|
Audit m = Audit.buildAuditParam(ownerInfo, insureInfo, applyInfo, ycConfigureParameters, iac);
|
|
|
|
|
|
- //处理地区
|
|
|
- Map<String, String> insureMap = gainRegionCode(insureInfo.getAddr());
|
|
|
- if (null != insureMap && insureMap.size() > 0) {
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCProvince(insureMap.get("provinceCode"));
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCCity(insureMap.get("cityCode"));
|
|
|
- m.getRequestLabel().getCondition().getCustomer().setCCounty(insureMap.get("areaCode"));
|
|
|
- } else {
|
|
|
- throw new SystemException("永诚 - 被保人地区获取失败,请联系管理员");
|
|
|
+ //构造被保人地区
|
|
|
+ InsAlltrustRegion insureInfoRegion = findRegion(insureInfo);
|
|
|
+ if(null != insureInfoRegion){
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCProvince(insureInfoRegion.getProvinceCode());
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCity(insureInfoRegion.getCityCode());
|
|
|
+ m.getRequestLabel().getCondition().getCustomer().setCCounty(insureInfoRegion.getArea());
|
|
|
+ }else{
|
|
|
+ throw new SystemException("永诚 - 被保人地区获取失败,请确认页面是否填写");
|
|
|
}
|
|
|
|
|
|
|
|
|
+// //处理地区
|
|
|
+// Map<String, String> insureMap = gainRegionCode(insureInfo.getAddr());
|
|
|
+// if (null != insureMap && insureMap.size() > 0) {
|
|
|
+// m.getRequestLabel().getCondition().getCustomer().setCProvince(insureMap.get("provinceCode"));
|
|
|
+// m.getRequestLabel().getCondition().getCustomer().setCCity(insureMap.get("cityCode"));
|
|
|
+// m.getRequestLabel().getCondition().getCustomer().setCCounty(insureMap.get("areaCode"));
|
|
|
+// } else {
|
|
|
+// throw new SystemException("永诚 - 被保人地区获取失败,请联系管理员");
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
log.debug("=========永诚API方式 - xml请求 - 核保开始======");
|
|
|
//接口请求
|
|
|
// InsApiLog apiLog = httpPost(xmlMapper, m, YcBuildData.API_AUDIT);
|