Package net.mingsoft.basic.biz.impl
Class RoleModelBizImpl
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<IRoleModelDao,RoleModelEntity>
net.mingsoft.basic.biz.impl.RoleModelBizImpl
- All Implemented Interfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<RoleModelEntity>,com.baomidou.mybatisplus.extension.service.IService<RoleModelEntity>,net.mingsoft.base.biz.IBaseBiz<RoleModelEntity>,IRoleModelBiz
@Service("roleModelBiz")
@Transactional
public class RoleModelBizImpl
extends net.mingsoft.base.biz.impl.BaseBizImpl<IRoleModelDao,RoleModelEntity>
implements IRoleModelBiz
角色模块关联业务层接口实现类
- 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 TypeMethodDescriptionvoiddeleteByModelIds(List<ModelEntity> models) 根据modelId删除关联roleIdvoiddeleteByRoleId(int roleId) 根据角色id删除关联记录voiddeleteByRoleIds(int[] ids) 根据角色id集合删除关联记录net.mingsoft.base.dao.IBaseDaogetDao()获取角色模块持久化层queryByRoleId(int roleId) 通过角色获取所有关联的模块idvoidsaveEntity(List<RoleModelEntity> roleModelList) 保存该角色对应的模块集合voidupdateEntity(List<RoleModelEntity> roleModelList) 更新该角色对应的模块集合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
-
RoleModelBizImpl
public RoleModelBizImpl()
-
-
Method Details
-
getDao
public net.mingsoft.base.dao.IBaseDao getDao()获取角色模块持久化层- Specified by:
getDaoin classnet.mingsoft.base.biz.impl.BaseBizImpl<IRoleModelDao,RoleModelEntity> - Returns:
- roleModelDao 返回角色模块持久化层
-
saveEntity
Description copied from interface:IRoleModelBiz保存该角色对应的模块集合- Specified by:
saveEntityin interfaceIRoleModelBiz- Parameters:
roleModelList- 集合
-
updateEntity
Description copied from interface:IRoleModelBiz更新该角色对应的模块集合- Specified by:
updateEntityin interfaceIRoleModelBiz- Parameters:
roleModelList- 集合
-
queryByRoleId
Description copied from interface:IRoleModelBiz通过角色获取所有关联的模块id- Specified by:
queryByRoleIdin interfaceIRoleModelBiz
-
deleteByRoleId
public void deleteByRoleId(int roleId) Description copied from interface:IRoleModelBiz根据角色id删除关联记录- Specified by:
deleteByRoleIdin interfaceIRoleModelBiz
-
deleteByRoleIds
public void deleteByRoleIds(int[] ids) Description copied from interface:IRoleModelBiz根据角色id集合删除关联记录- Specified by:
deleteByRoleIdsin interfaceIRoleModelBiz
-
deleteByModelIds
Description copied from interface:IRoleModelBiz根据modelId删除关联roleId- Specified by:
deleteByModelIdsin interfaceIRoleModelBiz- Parameters:
models- id集合
-