| | |
| | | select a.role_id AS roleId, a.role_name AS roleName, a.role_key AS roleKey, a.role_sort AS roleSort, a.data_scope AS dataScope, |
| | | a.menu_check_strictly AS menuCheckStrictly, a.dept_check_strictly AS deptCheckStrictly,a.status AS status, a.del_flag AS delFlag, |
| | | a.create_time AS createTime,a.create_by AS createBy,a.postType AS postType,a.removeDays AS removeDays, |
| | | r.role_type as roleType |
| | | IFNULL(b.userCount,0) as userCount |
| | | from sys_role a |
| | | LEFT JOIN |
| | |
| | | FROM sys_role r |
| | | LEFT JOIN sys_user_role ur ON r.role_id = ur.role_id |
| | | where r.del_flag = 0 |
| | | and r.role_id !=1 |
| | | GROUP BY r.role_id) b on a.role_id = b.roleId |
| | | <where> |
| | | <if test="query.roleName != null and query.roleName != ''"> |