|
|
|
@@ -737,10 +737,22 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService { |
|
|
|
gaodeInfo.setErrMsg("高德匹配到多条信息"); |
|
|
|
}else { |
|
|
|
gaodeInfo.setSuccess(true); |
|
|
|
gaodeInfo.setCountry(reo.getString("country")); |
|
|
|
gaodeInfo.setProvince(reo.getString("province")); |
|
|
|
gaodeInfo.setCity(reo.getString("city")); |
|
|
|
gaodeInfo.setDistrict(reo.getString("district")); |
|
|
|
String country = reo.getString("country"); |
|
|
|
if (StringUtils.isNotBlank(country)) { |
|
|
|
gaodeInfo.setCountry(country); |
|
|
|
} |
|
|
|
String province = reo.getString("province"); |
|
|
|
if (StringUtils.isNotBlank(province)) { |
|
|
|
gaodeInfo.setProvince(province); |
|
|
|
} |
|
|
|
String city = reo.getString("city"); |
|
|
|
if (StringUtils.isNotBlank(city)) { |
|
|
|
gaodeInfo.setCity(city); |
|
|
|
} |
|
|
|
String district = reo.getString("district"); |
|
|
|
if (StringUtils.isNotBlank(district)) { |
|
|
|
gaodeInfo.setDistrict(district); |
|
|
|
} |
|
|
|
String location = reo.getString("location"); |
|
|
|
if (StringUtils.isNotBlank(location)) { |
|
|
|
String[] locas = location.split(","); |
|
|
|
|