|
|
|
@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectMenuVo">
|
|
|
|
|
select menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time
|
|
|
|
|
select menu_id, menu_name, parent_id, order_num, url, menu_type, visible, ifnull(perms,'') as perms, icon, create_by, create_time
|
|
|
|
|
from sys_menu
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectMenuTree" parameterType="Long" resultType="String">
|
|
|
|
|
select concat(m.menu_id, m.perms) as perms
|
|
|
|
|
select concat(m.menu_id, ifnull(m.perms,'')) as perms
|
|
|
|
|
from sys_menu m
|
|
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
|
|
where rm.role_id = #{roleId}
|
|
|
|
|