fix 模糊查询

master
luoyang 5 years ago
parent 72ff8eb390
commit e26490808b

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

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

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

Loading…
Cancel
Save