Browse Source

补充配送订单查询时状态为2条件;

codingliang 2 năm trước cách đây
mục cha
commit
f8c92019ba
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/main/resources/mapper/errand/TbIndentMapper.xml

+ 3 - 1
src/main/resources/mapper/errand/TbIndentMapper.xml

@@ -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 @@
         from
             tb_indent
         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>