feat;增加角色模块
This commit is contained in:
@@ -35,18 +35,23 @@
|
||||
<select id="getAllAuthorityByUserId" resultType="com.tiesheng.role.pojos.dao.CoreRoleAuthority">
|
||||
select *
|
||||
from core_role_authority
|
||||
where id in (select type_id
|
||||
from core_role_user
|
||||
where type = 'menu'
|
||||
and user_id = #{userId}
|
||||
where is_open = 1
|
||||
and is_deleted = 0
|
||||
and
|
||||
id in (select type_id
|
||||
from core_role_user
|
||||
where type = 'menu'
|
||||
and user_id = #{userId}
|
||||
and is_deleted = 0
|
||||
|
||||
union
|
||||
union
|
||||
|
||||
select crgr.menu_id
|
||||
from core_role_user cru
|
||||
left join core_role_group_rx crgr on crgr.group_id = cru.type_id
|
||||
where type = 'job'
|
||||
and user_id = #{userId}
|
||||
select crgr.menu_id
|
||||
from core_role_user cru
|
||||
left join core_role_group_rx crgr on crgr.group_id = cru.type_id
|
||||
where type = 'job'
|
||||
and user_id = #{userId}
|
||||
and cru.is_deleted = 0
|
||||
|
||||
|
||||
<if test="roleId != null and roleId != ''">
|
||||
@@ -57,6 +62,7 @@
|
||||
where group_id = #{roleId}
|
||||
</if>
|
||||
)
|
||||
order by sort
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user