Package net.mingsoft.basic.biz.impl
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
LOGFields inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
baseMapperFields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
logFields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteRoleByRoles(List<RoleEntity> roles, ManagerEntity managerSession) 根据角色集合,删除不包括当前管理员所属角色以及默认角色的所有角色,并删除关联角色模块net.mingsoft.base.dao.IBaseDaogetDao()获取角色持久化层booleansaveOrUpdateRole(RoleBean role) 批量更新角色与权限关联数据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, updateEntityMethods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchByIdMethods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateEntityMethods 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, updateByIdMethods 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:
getDaoin classnet.mingsoft.base.biz.impl.BaseBizImpl<IRoleDao,RoleEntity> - Returns:
- roleDao 返回角色持久化层
-
saveOrUpdateRole
Description copied from interface:IRoleBiz批量更新角色与权限关联数据- Specified by:
saveOrUpdateRolein interfaceIRoleBiz- Parameters:
role- 当前角色,通常由前端提交- Returns:
- false:一般是角色名称重复 ,true:更新成功
-
deleteRoleByRoles
根据角色集合,删除不包括当前管理员所属角色以及默认角色的所有角色,并删除关联角色模块- Specified by:
deleteRoleByRolesin interfaceIRoleBiz- Parameters:
roles- 角色集合managerSession- 当前管理员- Returns:
- false:传参含有当前管理员所属角色或包含默认角色 ,true:删除成功
-