|
@@ -176,9 +176,10 @@
|
|
<if test="registerCode != null and registerCode != '' ">and register_code = #{registerCode}</if>
|
|
<if test="registerCode != null and registerCode != '' ">and register_code = #{registerCode}</if>
|
|
<if test="source != null and source != '' ">and source = #{source}</if>
|
|
<if test="source != null and source != '' ">and source = #{source}</if>
|
|
<if test="isShow != null ">and is_show = #{isShow}</if>
|
|
<if test="isShow != null ">and is_show = #{isShow}</if>
|
|
- <if test="(username != null and username != '') or (nickname != null and nickname != '') or (phone != null and phone != '')">
|
|
|
|
|
|
+ <if test="(username != null and username != '') or (userId != null and userId != '') or (nickname != null and nickname != '') or (phone != null and phone != '')">
|
|
and (
|
|
and (
|
|
<if test="username != null and username != ''">username like concat('%', #{username}, '%')</if>
|
|
<if test="username != null and username != ''">username like concat('%', #{username}, '%')</if>
|
|
|
|
+ <if test="userId != null and userId != ''">or user_id = #{userId}</if>
|
|
<if test="nickname != null and nickname != ''">or nickname like concat('%', #{nickname}, '%')</if>
|
|
<if test="nickname != null and nickname != ''">or nickname like concat('%', #{nickname}, '%')</if>
|
|
<if test="phone != null and phone != ''">or phone like concat('%',#{phone},'%')</if>
|
|
<if test="phone != null and phone != ''">or phone like concat('%',#{phone},'%')</if>
|
|
)
|
|
)
|