权限bug修复

This commit is contained in:
张松 2025-10-09 10:21:17 +08:00
parent 7346d542df
commit 28824c23ff
1 changed files with 2 additions and 1 deletions

View File

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