From 5749d10f8bb50ab677f3a9a55758f0de6f7cc234 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Wed, 26 Apr 2023 17:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9F=A5=E8=AF=A2=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E5=92=8C=E7=A7=AF=E5=88=86=E8=BF=94=E5=88=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/cweb/controller/CommonController.java | 20 ++-------------- .../java/com/hfkj/dao/BsStoreMapperExt.java | 4 +++- .../java/com/hfkj/model/OpenStoreModel.java | 24 ++++++++++++++----- 3 files changed, 23 insertions(+), 25 deletions(-) diff --git a/cweb/src/main/java/com/cweb/controller/CommonController.java b/cweb/src/main/java/com/cweb/controller/CommonController.java index 3fc12e7..6823139 100644 --- a/cweb/src/main/java/com/cweb/controller/CommonController.java +++ b/cweb/src/main/java/com/cweb/controller/CommonController.java @@ -8,6 +8,7 @@ import com.hfkj.channel.saas.utils.SaasCommon; import com.hfkj.common.exception.ErrorCode; import com.hfkj.common.exception.ErrorHelp; import com.hfkj.common.exception.SysCode; +import com.hfkj.common.utils.CoordCommonUtil; import com.hfkj.common.utils.ResponseMsgUtil; import com.hfkj.entity.BsCompany; import com.hfkj.entity.SecRegion; @@ -279,24 +280,7 @@ public class CommonController { ) { try { - List list = storeService.getStoreList(name , childId); - - for (OpenStoreModel storeModel : list ) { - Map map = new HashMap<>(); - String regEx = "[\n`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。, ·、?]"; - map.put("address" , storeModel.getBlisRegAddress().replaceAll(regEx,"")); - map.put("location" , "showLocation"); - JSONObject object = commonService.getMapDetail(map); - - if (object.getInteger("status") == 0) { - JSONObject jsonObject = object.getJSONObject("result").getJSONObject("location"); - storeModel.setLatitude(jsonObject.getString("lat")); - storeModel.setLongitude(jsonObject.getString("lng")); - } - - } - - return ResponseMsgUtil.success(list); + return ResponseMsgUtil.success(storeService.getStoreList(name , childId)); } catch (Exception e) { log.error(e.getMessage(), e); diff --git a/service/src/main/java/com/hfkj/dao/BsStoreMapperExt.java b/service/src/main/java/com/hfkj/dao/BsStoreMapperExt.java index 11768d8..64b49b4 100644 --- a/service/src/main/java/com/hfkj/dao/BsStoreMapperExt.java +++ b/service/src/main/java/com/hfkj/dao/BsStoreMapperExt.java @@ -27,7 +27,9 @@ public interface BsStoreMapperExt { @Select("