@@ -45,7 +45,7 @@ public interface IProvinceInfoService { | |||
* @param ipAddress | |||
* 获取省份经纬度信息 | |||
*/ | |||
ProvinceInfoEntity getProvinceInfo(String ipAddress); | |||
ProvinceInfoEntity getProvinceInfo(String provicne); | |||
/** | |||
* 获取省份经纬度信息 | |||
@@ -44,10 +44,10 @@ public class ProvinceInfoServiceImpl implements IProvinceInfoService { | |||
} | |||
@Override | |||
public ProvinceInfoEntity getProvinceInfo(String centerAddress) { | |||
public ProvinceInfoEntity getProvinceInfo(String provicne) { | |||
try { | |||
ProvinceInfoEntity query = new ProvinceInfoEntity(); | |||
query.setCenterAddress(centerAddress); | |||
query.setProvince(provicne); | |||
List<ProvinceInfoEntity> records = provinceInfoMapper.queryIpList(query); | |||
if (ObjectUtils.isNotEmpty(records)) { | |||
return records.get(0); | |||