|
|
@ -115,11 +115,6 @@ public class GovRoleServiceImpl extends BaseServiceImpl<GovRoleDao, GovRoleEntit |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delete(String[] ids) { |
|
|
|
//查询角色信息,管理员角色不允许删除
|
|
|
|
GovRoleEntity entity = baseDao.selectById(ids[NumConstant.ZERO]); |
|
|
|
if (null != entity && "管理员".equals(entity.getName())) { |
|
|
|
throw new RenException("9999", "管理员角色为默认角色,不允许删除"); |
|
|
|
} |
|
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
|
|
|
|
|
govRoleMenuService.deleteByRoleIds(ids); |
|
|
|