权限bug修复
This commit is contained in:
parent
7346d542df
commit
28824c23ff
|
|
@ -171,7 +171,8 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> imp
|
|||
for (SysMenu matched : matchedMenus) {
|
||||
long count = sysRolesMenusService.count(new QueryWrapper()
|
||||
.eq("menu_id", matched.getMenuId())
|
||||
.eq("role_id", roleId));
|
||||
.eq("role_id", roleId)
|
||||
.eq("type", type));
|
||||
if (count == 0) {
|
||||
rolesMenus.add(new SysRolesMenus(matched.getMenuId(), roleId, type));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue