feat;增加角色模块

This commit is contained in:
曾文豪
2024-06-25 18:51:29 +08:00
parent a10b57f6fc
commit aee4fa86f6
3 changed files with 18 additions and 16 deletions

View File

@@ -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>