|
@@ -16,11 +16,23 @@
|
|
|
WHERE u.deleted = 0
|
|
|
<if test="vo != null">
|
|
|
<if test="vo.username != null">
|
|
|
- AND (u.username LIKE CONCAT(CONCAT('%',#{vo.username}),'%') OR u.real_name LIKE CONCAT(CONCAT('%',#{vo.username}),'%'))
|
|
|
+ AND u.username LIKE CONCAT(CONCAT('%',#{vo.username}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="vo.realName != null">
|
|
|
+ AND u.real_name LIKE CONCAT(CONCAT('%',#{vo.realName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="vo.nickName != null">
|
|
|
+ AND u.nick_name LIKE CONCAT(CONCAT('%',#{vo.nickName}),'%')
|
|
|
</if>
|
|
|
<if test="vo.jobNum != null">
|
|
|
AND u.job_num LIKE CONCAT(CONCAT('%',#{vo.jobNum}),'%')
|
|
|
</if>
|
|
|
+ <if test="vo.phone != null">
|
|
|
+ AND u.phone LIKE CONCAT(CONCAT('%',#{vo.phone}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="vo.email != null">
|
|
|
+ AND u.email LIKE CONCAT(CONCAT('%',#{vo.email}),'%')
|
|
|
+ </if>
|
|
|
</if>
|
|
|
ORDER BY u.update_time DESC
|
|
|
</select>
|