|
|
@@ -66,6 +66,7 @@
|
|
|
g.goods_status,
|
|
|
g.delete_flag,
|
|
|
g.release_time,
|
|
|
+ g.video_first_frame,
|
|
|
ROUND(ST_Distance_Sphere(ST_GeomFromText(CONCAT('POINT(', REPLACE(#{position}, ',', ' '), ')' )), ST_GeomFromText(CONCAT('POINT(', REPLACE(g.position, ',', ' '), ')' ))) / 1000, 2) AS dist,
|
|
|
case when llr.id is null then '0' else '1' end likeStatus,
|
|
|
g.home_image,
|
|
|
@@ -115,6 +116,7 @@
|
|
|
CONCAT('user_', u.user_phone) as user_phone,
|
|
|
g.goods_status,
|
|
|
g.home_image,
|
|
|
+ g.video_first_frame,
|
|
|
case when llr.id is null then '0' else '1' end likeStatus,
|
|
|
case when lc.id is null then '0' else '1' end collectStatus,
|
|
|
(select count(1) from (SELECT id FROM store_comment c where c.business_id = g.id and c.business_type = 7 and c.delete_flag = 0 UNION ALL
|
|
|
@@ -198,6 +200,7 @@
|
|
|
g.delete_flag,
|
|
|
ROUND(ST_Distance_Sphere(ST_GeomFromText(CONCAT('POINT(', REPLACE(#{position}, ',', ' '), ')' )), ST_GeomFromText(CONCAT('POINT(', REPLACE(g.position, ',', ' '), ')' ))) / 1000, 2) AS dist,
|
|
|
g.home_image,
|
|
|
+ g.video_first_frame,
|
|
|
case when llr.id is null then '0' else '1' end likeStatus,
|
|
|
case when lc.id is null then '0' else '1' end collectStatus,
|
|
|
(select count(1) from (SELECT id FROM store_comment c where c.business_id = g.id and c.business_type = 7 and c.delete_flag = 0 UNION ALL
|