@ -290,8 +290,13 @@ public class SysRoleServiceImpl implements ISysRoleService
@@ -290,8 +290,13 @@ public class SysRoleServiceImpl implements ISysRoleService
*@return结果
*/
@Override
@Transactional
publicintdeleteRoleById(LongroleId)
{
// 删除角色与菜单关联
roleMenuMapper.deleteRoleMenuByRoleId(roleId);
// 删除角色与部门关联
roleDeptMapper.deleteRoleDeptByRoleId(roleId);
returnroleMapper.deleteRoleById(roleId);
}
@ -302,6 +307,7 @@ public class SysRoleServiceImpl implements ISysRoleService
@@ -302,6 +307,7 @@ public class SysRoleServiceImpl implements ISysRoleService
*@return结果
*/
@Override
@Transactional
publicintdeleteRoleByIds(Long[]roleIds)
{
for(LongroleId:roleIds)
@ -313,6 +319,10 @@ public class SysRoleServiceImpl implements ISysRoleService
@@ -313,6 +319,10 @@ public class SysRoleServiceImpl implements ISysRoleService
@ -363,6 +363,7 @@ public class SysUserServiceImpl implements ISysUserService
@@ -363,6 +363,7 @@ public class SysUserServiceImpl implements ISysUserService
*@return结果
*/
@Override
@Transactional
publicintdeleteUserById(LonguserId)
{
// 删除用户与角色关联
@ -379,12 +380,17 @@ public class SysUserServiceImpl implements ISysUserService
@@ -379,12 +380,17 @@ public class SysUserServiceImpl implements ISysUserService