From ae21df72cd3acbc8eb2ec4b9e55529ca9d02498c Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 14 Jul 2021 10:11:04 +0800
Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop

---
 gc-order/src/main/resources/mapper/order/JhyInfoMapper.xml |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gc-order/src/main/resources/mapper/order/JhyInfoMapper.xml b/gc-order/src/main/resources/mapper/order/JhyInfoMapper.xml
index cde8ce2..6416ea4 100644
--- a/gc-order/src/main/resources/mapper/order/JhyInfoMapper.xml
+++ b/gc-order/src/main/resources/mapper/order/JhyInfoMapper.xml
@@ -6,4 +6,9 @@
         select * from xzx_jhy_info where user_id=#{userId}
     </select>
 
+
+    <select id="selectJhyInfoListInAddressRange" resultType="com.xzx.gc.entity.JhyInfo">
+        select * from xzx_jhy_info a
+        where 500 > lat_lng_distance(a.lat, a.lon, (select latitude from xzx_user_address_info where address_id=#{addressId}), (select longitude from xzx_user_address_info where address_id=#{addressId}))*1000
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1