| | |
| | | from "system_user" usr |
| | | left join "system_user" create_user on create_user.id = usr.create_user |
| | | left join "system_user" update_user on update_user.id = usr.update_user |
| | | left join "system_user_role" sur on sur.user_id = usr.id |
| | | <where> |
| | | usr.deleted = 0 |
| | | <if test="dto.username != null and dto.username != ''"> |
| | |
| | | <if test="dto.mobile != null and dto.mobile != ''"> |
| | | AND usr.mobile LIKE '%'||#{dto.mobile}||'%' |
| | | </if> |
| | | <if test="dto.status != null "> |
| | | AND usr.status = #{dto.status} |
| | | </if> |
| | | <if test="dto.roleId != null and dto.roleId != ''"> |
| | | AND sur.role_id = #{dto.roleId} |
| | | </if> |
| | | |
| | | </where> |
| | | </select> |