修复菜单为“目录”,perms字段保存为NULL编辑角色权限问题

master
RuoYi 6 years ago committed by Limy
parent 6ebf0a30b8
commit 7f0ca33d8a

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

Loading…
Cancel
Save