Interface IRoleModelBiz

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

public interface IRoleModelBiz extends net.mingsoft.base.biz.IBaseBiz<RoleModelEntity>
角色模块关联业务层接口
Version:
版本号:100-000-000
创建日期:2012-03-15
历史修订:
Author:
张敏
  • Field Summary

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

    DEFAULT_BATCH_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    根据modelId删除关联roleId
    void
    deleteByRoleId(int roleId)
    根据角色id删除关联记录
    void
    deleteByRoleIds(int[] ids)
    根据角色id集合删除关联记录
    queryByRoleId(int roleId)
    通过角色获取所有关联的模块id
    void
    保存该角色对应的模块集合
    void
    更新该角色对应的模块集合

    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

    • saveEntity

      void saveEntity(List<RoleModelEntity> roleModelList)
      保存该角色对应的模块集合
      Parameters:
      roleModelList - 集合
    • updateEntity

      void updateEntity(List<RoleModelEntity> roleModelList)
      更新该角色对应的模块集合
      Parameters:
      roleModelList - 集合
    • queryByRoleId

      List<RoleModelEntity> queryByRoleId(int roleId)
      通过角色获取所有关联的模块id
      Parameters:
      roleId -
    • deleteByRoleId

      void deleteByRoleId(int roleId)
      根据角色id删除关联记录
      Parameters:
      roleId -
    • deleteByRoleIds

      void deleteByRoleIds(int[] ids)
      根据角色id集合删除关联记录
      Parameters:
      ids -
    • deleteByModelIds

      void deleteByModelIds(List<ModelEntity> models)
      根据modelId删除关联roleId
      Parameters:
      models - id集合