From 84df9479263f86650f4981e6dba49e0dbaba3915 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Tue, 19 Jan 2021 17:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=B0docker=E5=A4=96?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../telpo/dipperposition/service/IProvinceInfoService.java | 2 +- .../dipperposition/service/impl/ProvinceInfoServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/telpo/dipperposition/service/IProvinceInfoService.java b/src/main/java/com/telpo/dipperposition/service/IProvinceInfoService.java index ee14148..dafa7d6 100644 --- a/src/main/java/com/telpo/dipperposition/service/IProvinceInfoService.java +++ b/src/main/java/com/telpo/dipperposition/service/IProvinceInfoService.java @@ -45,7 +45,7 @@ public interface IProvinceInfoService { * @param ipAddress * 获取省份经纬度信息 */ - ProvinceInfoEntity getProvinceInfo(String ipAddress); + ProvinceInfoEntity getProvinceInfo(String provicne); /** * 获取省份经纬度信息 diff --git a/src/main/java/com/telpo/dipperposition/service/impl/ProvinceInfoServiceImpl.java b/src/main/java/com/telpo/dipperposition/service/impl/ProvinceInfoServiceImpl.java index 7b9e776..657868a 100644 --- a/src/main/java/com/telpo/dipperposition/service/impl/ProvinceInfoServiceImpl.java +++ b/src/main/java/com/telpo/dipperposition/service/impl/ProvinceInfoServiceImpl.java @@ -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 records = provinceInfoMapper.queryIpList(query); if (ObjectUtils.isNotEmpty(records)) { return records.get(0);