权限bug修复
This commit is contained in:
parent
612a2e6128
commit
7346d542df
|
|
@ -171,8 +171,7 @@ 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("type", type));
|
||||
.eq("role_id", roleId));
|
||||
if (count == 0) {
|
||||
rolesMenus.add(new SysRolesMenus(matched.getMenuId(), roleId, type));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue