|
|
@@ -11,10 +11,13 @@
|
|
|
from custom_info custom
|
|
|
<where>
|
|
|
<if test="name != null and name !=''">
|
|
|
- and custom.name line concat ('%',#{name},'%')
|
|
|
+ and custom.name like concat ('%',#{name},'%')
|
|
|
</if>
|
|
|
<if test="email != null and email !=''">
|
|
|
- and custom.email line concat (#{email},'%')
|
|
|
+ and custom.email like concat (#{email},'%')
|
|
|
+ </if>
|
|
|
+ <if test="phone != null and phone !=''">
|
|
|
+ and custom.phone = #{phone}
|
|
|
</if>
|
|
|
<if test="identity != null and identity !=''">
|
|
|
and custom.identity = #{identity}
|
|
|
@@ -42,10 +45,13 @@
|
|
|
from custom_info custom
|
|
|
<where>
|
|
|
<if test="name != null and name !=''">
|
|
|
- and custom.name line concat ('%',#{name},'%')
|
|
|
+ and custom.name like concat ('%',#{name},'%')
|
|
|
</if>
|
|
|
<if test="email != null and email !=''">
|
|
|
- and custom.email line concat ('%',#{email},'%')
|
|
|
+ and custom.email like concat ('%',#{email},'%')
|
|
|
+ </if>
|
|
|
+ <if test="phone != null and phone !=''">
|
|
|
+ and custom.phone = #{phone}
|
|
|
</if>
|
|
|
<if test="identity != null and identity !=''">
|
|
|
and custom.identity =#{identity}
|