fix 部门权限问题

feature/model
疯狂的狮子li 4 years ago
parent bc182f1392
commit 73db99398f

@ -236,7 +236,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
* @param role
*/
public int insertRoleMenu(SysRole role) {
int rows = 0;
int rows = 1;
// 新增用户与角色管理
List<SysRoleMenu> list = new ArrayList<SysRoleMenu>();
for (Long menuId : role.getMenuIds()) {
@ -259,7 +259,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
* @param role
*/
public int insertRoleDept(SysRole role) {
int rows = 0;
int rows = 1;
// 新增角色与部门(数据权限)管理
List<SysRoleDept> list = new ArrayList<SysRoleDept>();
for (Long deptId : role.getDeptIds()) {

Loading…
Cancel
Save