Interface IRoleBiz

All Superinterfaces:
net.mingsoft.base.biz.IBaseBiz<RoleEntity>, com.baomidou.mybatisplus.extension.repository.IRepository<RoleEntity>, com.baomidou.mybatisplus.extension.service.IService<RoleEntity>
All Known Implementing Classes:
RoleBizImpl

public interface IRoleBiz extends net.mingsoft.base.biz.IBaseBiz<RoleEntity>
Author:
铭软开发团队
  • Field Summary

    Fields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    DEFAULT_BATCH_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    根据角色集合,删除不包括当前管理员所属角色以及默认角色的所有角色,并删除关联角色模块
    boolean
    批量更新角色与权限关联数据

    Methods inherited from interface net.mingsoft.base.biz.IBaseBiz

    alterTable, createTable, delete, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, execute, getEntity, getEntity, getEntity, insert, insertBySQL, query, queryAll, queryCount, queryForList, queryForList, queryForListPage, saveBatch, saveEntity, update, update, updateBySQL, updateCache, updateEntity

    Methods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById

    Methods inherited from interface com.baomidou.mybatisplus.extension.service.IService

    removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
  • Method Details

    • saveOrUpdateRole

      boolean saveOrUpdateRole(RoleBean role)
      批量更新角色与权限关联数据
      Parameters:
      role - 当前角色,通常由前端提交
      Returns:
      false:一般是角色名称重复 ,true:更新成功
    • deleteRoleByRoles

      boolean deleteRoleByRoles(List<RoleEntity> roles, ManagerEntity managerSession)
      根据角色集合,删除不包括当前管理员所属角色以及默认角色的所有角色,并删除关联角色模块
      Parameters:
      roles - 角色集合
      managerSession - 当前管理员
      Returns:
      false:传参含有当前管理员所属角色或包含默认角色 ,true:删除成功