|
@@ -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 tdk2 on t.order_status = tdk2.kind_code
|
|
|
left join sys.t_data_kind as tdk3 on t.out_status = tdk3.kind_code
|
|
left join sys.t_data_kind as tdk3 on t.out_status = tdk3.kind_code
|
|
|
<include refid="Condition"/>
|
|
<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
|
|
order by t.op_create_time desc
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
limit #{end} offset #{start}
|
|
@@ -571,6 +578,13 @@
|
|
|
FROM dkic_b.t_psi_order as t
|
|
FROM dkic_b.t_psi_order as t
|
|
|
left join dkic_b.t_mst_customer tmc on t.cus_id = tmc.cus_id
|
|
left join dkic_b.t_mst_customer tmc on t.cus_id = tmc.cus_id
|
|
|
<include refid="Condition"/>
|
|
<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>
|
|
</select>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List_Item_Response_Join">
|
|
<sql id="Base_Column_List_Item_Response_Join">
|