|
@@ -27,7 +27,8 @@ public interface PosOrderMapper extends BaseMapper<PosOrder>
|
|
|
@Select("SELECT *,(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli FROM pos_order WHERE state>=#{zx} and state<=#{zd} and type=0 HAVING juli<#{juli} ORDER BY juli ASC limit #{page},20") //查询语句
|
|
@Select("SELECT *,(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli FROM pos_order WHERE state>=#{zx} and state<=#{zd} and type=0 HAVING juli<#{juli} ORDER BY juli ASC limit #{page},20") //查询语句
|
|
|
List<PosOrder> getz234(@Param("longitude") BigDecimal longitude, @Param("latitude")BigDecimal latitude, @Param("page")Integer page, @Param("juli")Integer juli, @Param("zx")Integer zx, @Param("zd")Integer zd); //反回结果
|
|
List<PosOrder> getz234(@Param("longitude") BigDecimal longitude, @Param("latitude")BigDecimal latitude, @Param("page")Integer page, @Param("juli")Integer juli, @Param("zx")Integer zx, @Param("zd")Integer zd); //反回结果
|
|
|
|
|
|
|
|
- @Select("SELECT *,(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli FROM pos_order WHERE (state=0 and collect_payment=1 and type=0) or (state=1 and collect_payment=0 and type=0) HAVING juli<#{juli} ORDER BY juli ASC limit #{page},20") //查询语句
|
|
|
|
|
|
|
+// @Select("SELECT *,(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli FROM pos_order WHERE (state=0 and collect_payment=1 and type=0) or (state=1 and collect_payment=0 and type=0) HAVING juli<#{juli} ORDER BY juli ASC limit #{page},20")
|
|
|
|
|
+ @Select("SELECT *,(st_distance(point(longitude,latitude),point(#{longitude},#{latitude}))*111195/1000 ) as juli FROM pos_order WHERE (state=0 and collect_payment=1 and type=0) or (state=1 and collect_payment=0 and type=0) ORDER BY juli ASC limit #{page},20") //查询语句
|
|
|
List<PosOrder> getz02(@Param("longitude") BigDecimal longitude, @Param("latitude")BigDecimal latitude, @Param("page")Integer page, @Param("juli")Integer juli); //反回结果
|
|
List<PosOrder> getz02(@Param("longitude") BigDecimal longitude, @Param("latitude")BigDecimal latitude, @Param("page")Integer page, @Param("juli")Integer juli); //反回结果
|
|
|
//统计订单数量
|
|
//统计订单数量
|
|
|
@Select("SELECT IFNULL(COUNT(*),0) as amount FROM pos_order") //查询语句
|
|
@Select("SELECT IFNULL(COUNT(*),0) as amount FROM pos_order") //查询语句
|