fix 模糊查询

master
luoyang 5 years ago
parent 2c16633450
commit abe96475ac

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.3.57</version>
<version>1.3.58</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

@ -486,20 +486,15 @@
<if test="search_text!=null">
<bind name="name_pattern" value="'%'+search_text+'%'"/>
<if test="text_type=='all'">
and (p.client_moniker=#{search_text} or p.short_name like #{name_pattern} or 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})
</if>
<if test="text_type=='client_moniker'">
and p.client_moniker=#{search_text}
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}
</if>
<if test="text_type=='client_name'">
and p.short_name like #{name_pattern}
</if>
<if test="text_type=='channel'">
and o.channel = #{search_text}
</if>

@ -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}

Loading…
Cancel
Save