|
|
@ -81,6 +81,7 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return 角色列表
|
|
|
|
* @return 角色列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<SysRole> selectRoleAll()
|
|
|
|
public List<SysRole> selectRoleAll()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
|
|
|
|
return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
|
|
|
@ -92,6 +93,7 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|
|
|
* @param userId 用户ID
|
|
|
|
* @param userId 用户ID
|
|
|
|
* @return 选中角色ID列表
|
|
|
|
* @return 选中角色ID列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<Integer> selectRoleListByUserId(Long userId)
|
|
|
|
public List<Integer> selectRoleListByUserId(Long userId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return roleMapper.selectRoleListByUserId(userId);
|
|
|
|
return roleMapper.selectRoleListByUserId(userId);
|
|
|
@ -103,6 +105,7 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|
|
|
* @param roleId 角色ID
|
|
|
|
* @param roleId 角色ID
|
|
|
|
* @return 角色对象信息
|
|
|
|
* @return 角色对象信息
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public SysRole selectRoleById(Long roleId)
|
|
|
|
public SysRole selectRoleById(Long roleId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return roleMapper.selectRoleById(roleId);
|
|
|
|
return roleMapper.selectRoleById(roleId);
|
|
|
@ -149,6 +152,7 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param role 角色信息
|
|
|
|
* @param role 角色信息
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void checkRoleAllowed(SysRole role)
|
|
|
|
public void checkRoleAllowed(SysRole role)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
|
|
|
|
if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
|
|
|
@ -207,6 +211,7 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|
|
|
* @param role 角色信息
|
|
|
|
* @param role 角色信息
|
|
|
|
* @return 结果
|
|
|
|
* @return 结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int updateRoleStatus(SysRole role)
|
|
|
|
public int updateRoleStatus(SysRole role)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return roleMapper.updateRole(role);
|
|
|
|
return roleMapper.updateRole(role);
|
|
|
@ -296,6 +301,7 @@ public class SysRoleServiceImpl implements ISysRoleService
|
|
|
|
* @param roleIds 需要删除的角色ID
|
|
|
|
* @param roleIds 需要删除的角色ID
|
|
|
|
* @return 结果
|
|
|
|
* @return 结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int deleteRoleByIds(Long[] roleIds)
|
|
|
|
public int deleteRoleByIds(Long[] roleIds)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (Long roleId : roleIds)
|
|
|
|
for (Long roleId : roleIds)
|
|
|
|