| | |
| | | </resultMap> |
| | | |
| | | <select id="queryPage" resultMap="BaseResultMap"> |
| | | select u.*, r.role_name,r.role_id |
| | | select u.*, r.role_name, r.role_id |
| | | from sys_user u |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on ur.role_id = r.role_id |
| | | <where> |
| | | u.is_delete = 0 |
| | | and u.franchisee_id is null |
| | | <if test="nickName != null and nickName != ''"> |
| | | and u.nick_name like CONCAT('%', #{nickName}, '%') |
| | | </if> |
| | |
| | | and u.account like CONCAT('%', #{account}, '%') |
| | | </if> |
| | | <if test="role != null and role != ''"> |
| | | and r.role_name like CONCAT('%', #{role}, '%') |
| | | and r.role_id = #{role} |
| | | </if> |
| | | </where> |
| | | order by u.create_time desc |