feat: uaa改造为Spring Authorization Server

This commit is contained in:
zlt2000
2023-12-12 10:48:32 +08:00
parent 671ab86543
commit 2a05c6ab91
81 changed files with 2917 additions and 520 deletions
@@ -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>