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