|
|
|
@ -159,10 +159,11 @@
|
|
|
|
|
<if test="search_text!=null">
|
|
|
|
|
<bind name="name_pattern" value="'%'+search_text+'%'"/>
|
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
|
and (o.order_detail like
|
|
|
|
|
#{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or
|
|
|
|
|
t.order_id = #{name_pattern}
|
|
|
|
|
or o.client_order_id = #{name_pattern})
|
|
|
|
|
and (o.order_detail like #{name_pattern}
|
|
|
|
|
or t.system_transaction_id like #{name_pattern}
|
|
|
|
|
or o.channel = #{search_text}
|
|
|
|
|
or t.order_id like #{name_pattern}
|
|
|
|
|
or o.client_order_id like #{name_pattern})
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='sys_trans_id'">
|
|
|
|
|
and t.system_transaction_id =#{search_text}
|
|
|
|
@ -258,10 +259,11 @@
|
|
|
|
|
<if test="search_text!=null">
|
|
|
|
|
<bind name="name_pattern" value="'%'+search_text+'%'"/>
|
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
|
and (o.order_detail like
|
|
|
|
|
#{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or
|
|
|
|
|
t.order_id = #{name_pattern}
|
|
|
|
|
or o.client_order_id = #{name_pattern})
|
|
|
|
|
and (o.order_detail like #{name_pattern}
|
|
|
|
|
or t.system_transaction_id like #{name_pattern}
|
|
|
|
|
or o.channel = #{search_text}
|
|
|
|
|
or t.order_id like #{name_pattern}
|
|
|
|
|
or o.client_order_id like #{name_pattern})
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='sys_trans_id'">
|
|
|
|
|
and t.system_transaction_id =#{search_text}
|
|
|
|
|