diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java index d025dd4e..2673c810 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java @@ -236,7 +236,7 @@ public class SysRoleServiceImpl extends ServiceImpl impl * @param role 角色对象 */ public int insertRoleMenu(SysRole role) { - int rows = 0; + int rows = 1; // 新增用户与角色管理 List list = new ArrayList(); for (Long menuId : role.getMenuIds()) { @@ -259,7 +259,7 @@ public class SysRoleServiceImpl extends ServiceImpl impl * @param role 角色对象 */ public int insertRoleDept(SysRole role) { - int rows = 0; + int rows = 1; // 新增角色与部门(数据权限)管理 List list = new ArrayList(); for (Long deptId : role.getDeptIds()) {