|
@@ -81,7 +81,7 @@
|
|
|
(st_distance (point (ti.shop_lng,ti.shop_lat),point(#{riderLng},#{riderLat}) ) *111195) AS distancess,
|
|
(st_distance (point (ti.shop_lng,ti.shop_lat),point(#{riderLng},#{riderLat}) ) *111195) AS distancess,
|
|
|
(st_distance (point (ti.user_lng,ti.user_lat),point(#{riderLng},#{riderLat}) ) *111195) AS distancessd
|
|
(st_distance (point (ti.user_lng,ti.user_lat),point(#{riderLng},#{riderLat}) ) *111195) AS distancessd
|
|
|
from tb_indent ti
|
|
from tb_indent ti
|
|
|
- <!-- todo where ti.indent_state = 2 -->
|
|
|
|
|
|
|
+ where ti.indent_state = 2
|
|
|
) a
|
|
) a
|
|
|
where
|
|
where
|
|
|
user_city like concat('%',#{address},'%')
|
|
user_city like concat('%',#{address},'%')
|
|
@@ -97,7 +97,7 @@
|
|
|
(st_distance (point (ti.shop_lng,ti.shop_lat),point(#{queryDTO.riderLng},#{queryDTO.riderLat}) ) * 111195) AS distancess,
|
|
(st_distance (point (ti.shop_lng,ti.shop_lat),point(#{queryDTO.riderLng},#{queryDTO.riderLat}) ) * 111195) AS distancess,
|
|
|
(st_distance (point (ti.user_lng,ti.user_lat),point(#{queryDTO.riderLng},#{queryDTO.riderLat}) ) * 111195) AS distancessd
|
|
(st_distance (point (ti.user_lng,ti.user_lat),point(#{queryDTO.riderLng},#{queryDTO.riderLat}) ) * 111195) AS distancessd
|
|
|
from tb_indent ti
|
|
from tb_indent ti
|
|
|
- <!-- todo where ti.indent_state = 2-->
|
|
|
|
|
|
|
+ where ti.indent_state = 2
|
|
|
) a
|
|
) a
|
|
|
where
|
|
where
|
|
|
user_city like concat('%',#{queryDTO.city},'%')
|
|
user_city like concat('%',#{queryDTO.city},'%')
|