Эх сурвалжийг харах

1、修改订单的查询

zhoux 1 жил өмнө
parent
commit
428c96a2d8

+ 14 - 0
src/main/java/com/dk/mdm/mapper/sale/OrderMapper.xml

@@ -558,6 +558,13 @@
                  left join sys.t_data_kind as tdk2 on t.order_status = tdk2.kind_code
                  left join sys.t_data_kind as tdk3 on t.out_status = tdk3.kind_code
         <include refid="Condition"/>
+        <if test="searchText !=null">
+            AND (  t.order_no LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+            OR   t.cus_name LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+            OR   t.cus_phone LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+            OR   t.address_full LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+            )
+        </if>
         order by t.op_create_time desc
         <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
             limit #{end} offset #{start}
@@ -571,6 +578,13 @@
         FROM dkic_b.t_psi_order as t
                 left join dkic_b.t_mst_customer tmc on t.cus_id = tmc.cus_id
         <include refid="Condition"/>
+        <if test="searchText !=null">
+        AND (  t.order_no LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+        OR   t.cus_name LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+        OR   t.cus_phone LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+        OR   t.address_full LIKE concat('%', my_ex.likequery(#{searchText}), '%')
+        )
+        </if>
     </select>
 
     <sql id="Base_Column_List_Item_Response_Join">