Просмотр исходного кода

1.先去掉骑手大厅订单距离限制

qmj 2 недель назад
Родитель
Сommit
d288b26e1b

+ 2 - 1
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PosOrderMapper.java

@@ -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")  //查询语句
     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);  //反回结果
     //统计订单数量
     @Select("SELECT IFNULL(COUNT(*),0) as amount FROM pos_order")  //查询语句