权限bug修复

This commit is contained in:
张松 2025-10-09 10:07:10 +08:00
parent 612a2e6128
commit 7346d542df
1 changed files with 1 additions and 2 deletions

View File

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