@@ -54,6 +54,7 @@
(st_distance(point(user_lng,user_lat), point(#{queryDTO.riderLng}, #{queryDTO.riderLat})) * 111195) AS distancessd
from
tb_indent
+ where indent_state = 2
) a
<where>
<if test="queryDTO.distances!= null">
@@ -120,7 +121,8 @@
where
- shop_city like concat('%',#{queryDTO.city},'%')
+ indent_state = 2
+ and shop_city like concat('%',#{queryDTO.city},'%')
<if test="queryDTO.indentType!=null and queryDTO.indentType!=''">
and indent_type = #{queryDTO.indentType}
</if>