|
@@ -144,7 +144,7 @@ public interface StoreInfoMapper extends BaseMapper<StoreInfo> {
|
|
|
" from store_evaluation eval " +
|
|
" from store_evaluation eval " +
|
|
|
" where eval.store_id = a.id and eval.delete_flag = 0 " +
|
|
" where eval.store_id = a.id and eval.delete_flag = 0 " +
|
|
|
") score, " +
|
|
") score, " +
|
|
|
- "ROUND(ST_Distance_Sphere(ST_GeomFromText(CONCAT('POINT(', REPLACE(#{position}, ',', ' '), ')' )), ST_GeomFromText(CONCAT('POINT(', REPLACE(a.store_position, ',', ' '), ')' ))), 0) distance3 " +
|
|
|
|
|
|
|
+ "ROUND(ST_Distance_Sphere(ST_GeomFromText(CONCAT('POINT(', REPLACE(#{position}, ',', ' '), ')' )), ST_GeomFromText(CONCAT('POINT(', REPLACE(a.store_position, ',', ' '), ')' )))) distance3 " +
|
|
|
"from store_info a " +
|
|
"from store_info a " +
|
|
|
"left join store_user b on a.id = b.store_id and a.delete_flag = 0 and b.delete_flag = 0 " +
|
|
"left join store_user b on a.id = b.store_id and a.delete_flag = 0 and b.delete_flag = 0 " +
|
|
|
"left join store_dictionary c on a.store_status = c.dict_id and c.type_name = 'storeState' and c.delete_flag = 0 " +
|
|
"left join store_dictionary c on a.store_status = c.dict_id and c.type_name = 'storeState' and c.delete_flag = 0 " +
|