|
|
@ -27,7 +27,22 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getListForApp" resultMap="BaseResultMap">
|
|
|
|
<select id="getListForApp" resultMap="BaseResultMap">
|
|
|
|
SELECT t1.*, t2.avatar contact_avatar, t2.nick_name contact_nick_name,
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
t1.id,
|
|
|
|
|
|
|
|
t1.name,
|
|
|
|
|
|
|
|
t1.region_id,
|
|
|
|
|
|
|
|
t1.address,
|
|
|
|
|
|
|
|
t1.lng,
|
|
|
|
|
|
|
|
t1.lat,
|
|
|
|
|
|
|
|
t1.contact,
|
|
|
|
|
|
|
|
t1.phone,
|
|
|
|
|
|
|
|
t1.tel,
|
|
|
|
|
|
|
|
t1.opening_hours,
|
|
|
|
|
|
|
|
t1.background,
|
|
|
|
|
|
|
|
t1.status,
|
|
|
|
|
|
|
|
t1.visit_count,
|
|
|
|
|
|
|
|
t1.introduction,
|
|
|
|
|
|
|
|
t1.code, t2.avatar contact_avatar, t2.nick_name contact_nick_name,
|
|
|
|
st_distance_sphere(point(lng, lat), point(#{storeSearchDto.lng}, #{storeSearchDto.lat})) as distance
|
|
|
|
st_distance_sphere(point(lng, lat), point(#{storeSearchDto.lng}, #{storeSearchDto.lat})) as distance
|
|
|
|
FROM tb_store t1
|
|
|
|
FROM tb_store t1
|
|
|
|
left join tb_user_info t2
|
|
|
|
left join tb_user_info t2
|
|
|
|