diff --git a/src/main/java/com/ruoyi/project/system/role/service/RoleServiceImpl.java b/src/main/java/com/ruoyi/project/system/role/service/RoleServiceImpl.java index 897dc123..87714aa2 100644 --- a/src/main/java/com/ruoyi/project/system/role/service/RoleServiceImpl.java +++ b/src/main/java/com/ruoyi/project/system/role/service/RoleServiceImpl.java @@ -126,7 +126,7 @@ public class RoleServiceImpl implements IRoleService @Override public int deleteRoleById(Long roleId) { - userRoleDao.deleteUserRoleByUserId(roleId); + userRoleDao.deleteUserRoleByRoleId(roleId); roleMenuDao.deleteRoleMenuByRoleId(roleId); return roleDao.deleteRoleById(roleId); }