Class RoleBizImpl

java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
net.mingsoft.base.biz.impl.BaseBizImpl<IRoleDao,RoleEntity>
net.mingsoft.basic.biz.impl.RoleBizImpl
All Implemented Interfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<RoleEntity>, com.baomidou.mybatisplus.extension.service.IService<RoleEntity>, net.mingsoft.base.biz.IBaseBiz<RoleEntity>, IRoleBiz

@Service("roleBiz") @Transactional public class RoleBizImpl extends net.mingsoft.base.biz.impl.BaseBizImpl<IRoleDao,RoleEntity> implements IRoleBiz
角色业务层接口实现类
Version:
版本号:100-000-000
创建日期:2012-03-15
历史修订:
Author:
张敏
  • Field Summary

    Fields inherited from class net.mingsoft.base.biz.impl.BaseBizImpl

    LOG

    Fields inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository

    baseMapper

    Fields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository

    log

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

    DEFAULT_BATCH_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    根据角色集合,删除不包括当前管理员所属角色以及默认角色的所有角色,并删除关联角色模块
    net.mingsoft.base.dao.IBaseDao
    获取角色持久化层
    boolean
    批量更新角色与权限关联数据

    Methods inherited from class net.mingsoft.base.biz.impl.BaseBizImpl

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

    Methods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository

    getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchById

    Methods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository

    executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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
  • Constructor Details

    • RoleBizImpl

      public RoleBizImpl()
  • Method Details

    • getDao

      public net.mingsoft.base.dao.IBaseDao getDao()
      获取角色持久化层
      Specified by:
      getDao in class net.mingsoft.base.biz.impl.BaseBizImpl<IRoleDao,RoleEntity>
      Returns:
      roleDao 返回角色持久化层
    • saveOrUpdateRole

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

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