|
|
@@ -47,7 +47,7 @@ public interface PosStoreMapper extends BaseMapper<PosStore>
|
|
|
" HAVING xxzt=0 ORDER BY pingf DESC limit #{page},10</script>") //查询语句
|
|
|
List<PosStore> getjxStore(@Param("longitude")BigDecimal longitude, @Param("latitude")BigDecimal latitude,@Param("page")Integer page,@Param("flId")Long flId); //反回结果
|
|
|
|
|
|
- @Select("<script>SELECT COUNT(*),(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli,(SELECT del_flag FROM info_user WHERE info_user.user_id = pos_store.user_id) as xxzt,(SELECT IFNULL(AVG(score),0) FROM pos_review WHERE pos_review.md_id = pos_store.id) as pingf,(SELECT IFNULL(COUNT(id),0) FROM pos_order WHERE pos_order.md_id = pos_store.id) as ddsl FROM pos_store WHERE off_shelf='0' " +
|
|
|
+ @Select("<script>SELECT IFNULL(COUNT(*), 0),(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli,(SELECT del_flag FROM info_user WHERE info_user.user_id = pos_store.user_id) as xxzt,(SELECT IFNULL(AVG(score),0) FROM pos_review WHERE pos_review.md_id = pos_store.id) as pingf,(SELECT IFNULL(COUNT(id),0) FROM pos_order WHERE pos_order.md_id = pos_store.id) as ddsl FROM pos_store WHERE off_shelf='0' " +
|
|
|
" <if test='flId != null and flId != 0'>and FIND_IN_SET(#{flId},sort) > 0</if> " +
|
|
|
" HAVING xxzt=0 ORDER BY pingf DESC</script>") //查询语句
|
|
|
int getjxStoreCount(@Param("longitude")BigDecimal longitude, @Param("latitude")BigDecimal latitude,@Param("flId")Long flId);
|