From 5ded2569d04a671c85bb7869966ebb3aa61cf5b0 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 10 四月 2020 11:49:08 +0800 Subject: [PATCH] 修复代码生成如果选择字典类型缺失逗号问题 --- ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml b/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml index 98aee20..179a679 100644 --- a/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml +++ b/ruoyi/src/main/resources/mybatis/system/SysMenuMapper.xml @@ -96,7 +96,8 @@ from sys_menu m left join sys_role_menu rm on m.menu_id = rm.menu_id left join sys_user_role ur on rm.role_id = ur.role_id - where ur.user_id = #{userId} + left join sys_role r on r.role_id = ur.role_id + where m.visible = '0' and r.status = '0' and ur.user_id = #{userId} </select> <select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult"> @@ -117,7 +118,7 @@ update sys_menu <set> <if test="menuName != null and menuName != ''">menu_name = #{menuName},</if> - <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> + <if test="parentId != null">parent_id = #{parentId},</if> <if test="orderNum != null and orderNum != ''">order_num = #{orderNum},</if> <if test="path != null and path != ''">path = #{path},</if> <if test="component != null and component != ''">component = #{component},</if> -- Gitblit v1.9.2