feat: uaa改造为Spring Authorization Server
This commit is contained in:
@@ -2,5 +2,15 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.central.user.mapper.SysMenuMapper">
|
||||
|
||||
<select id="findByUserId" resultType="com.central.common.model.SysMenu">
|
||||
select distinct t.* from sys_menu t
|
||||
inner join sys_role_menu r on r.menu_id = t.id
|
||||
inner join sys_role_user ru on ru.role_id = r.role_id
|
||||
where ru.user_id = #{userId}
|
||||
<if test="type != null">
|
||||
and t.type = #{type}
|
||||
</if>
|
||||
and t.hidden = 0
|
||||
ORDER BY sort ASC
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user