xiaoyong931011
2021-07-14 8d08ca6bdfc3dd61b0aaa7daa27308c3d59f0df1
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>