Interface IModelBiz

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

public interface IModelBiz extends net.mingsoft.base.biz.IBaseBiz<ModelEntity>
模块业务接口
Version:
版本号:100-000-000
创建日期:2012-03-15
历史修订:
Author:
ms dev group
  • Field Summary

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

    DEFAULT_BATCH_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int[] ids)
    根据菜单编号删除菜单
    根据模块编号查询模块实体
    getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
    根据模块编号查询模块实体
    getModel(String modelType, int modelId)
    根据模块id获取当前项目中的分类模块id,规则根据modelcode定。
    void
    importModel(ModelEntity modelEntity, int mangerRoleId, String parentIds, Integer modelId)
    导入菜单
    void
    jsonToModel(String menuStr, int mangerRoleId, int modelId)
    Deprecated.
    此方法已废弃 推荐使用importModel方法
    查询当前菜单所有的子集菜单和权限集合
    此方法不动,怕影响其他地方使用 查询当前菜单下的一级菜单
    queryModelByRoleId(int roleId)
    根据角色ID查询模块集合
    void
    reModel(ModelEntity modelParent, String parentIds, int mangerRoleId, List<RoleModelEntity> roleModels, Integer parentId)
    Deprecated.
    此方法已废弃 推荐使用importModel方法
    void
    保存
    void
    saveModel(ModelEntity modelEntity)
    保存菜单,并且为角色添加该新增菜单的权限(super不会给绑定的角色添加新增菜单的权限)
    void
    修改

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

    alterTable, createTable, 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

    • queryModelByRoleId

      List<ModelEntity> queryModelByRoleId(int roleId)
      根据角色ID查询模块集合
      Parameters:
      roleId - 角色ID
      Returns:
      返回模块集合
    • getEntityByModelCode

      ModelEntity getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
      根据模块编号查询模块实体
      Parameters:
      modelCode - 模块编号
      Returns:
      返回模块实体
    • getEntityByModelCode

      ModelEntity getEntityByModelCode(String modelCode)
      根据模块编号查询模块实体
      Parameters:
      modelCode - 模块编号
      Returns:
      返回模块实体
    • getModel

      ModelEntity getModel(String modelType, int modelId)
      根据模块id获取当前项目中的分类模块id,规则根据modelcode定。**99******,只用是第3位与第4位99
      Parameters:
      modelType - 模块类型 
      modelId - 模块ID
      Returns:
      返回模块实体
    • reModel

      void reModel(ModelEntity modelParent, String parentIds, int mangerRoleId, List<RoleModelEntity> roleModels, Integer parentId)
      Deprecated.
      此方法已废弃 推荐使用importModel方法
      菜单新增递归方法
      Parameters:
      modelParent - 菜单实体
      parentIds - 父级ids
      mangerRoleId - 管理员id
      roleModels - 角色mode数组
      parentId - 父级id
    • jsonToModel

      void jsonToModel(String menuStr, int mangerRoleId, int modelId)
      Deprecated.
      此方法已废弃 推荐使用importModel方法
      字符串转菜单
      Parameters:
      menuStr - 菜单json
      mangerRoleId - 当前管理员的角色id
      modelId - 父级菜单编号,用于导入子菜单设置父级菜单编号
    • importModel

      void importModel(ModelEntity modelEntity, int mangerRoleId, String parentIds, Integer modelId)
      导入菜单
      Parameters:
      modelEntity - 菜单实体
      mangerRoleId - 当前管理员的角色id
      parentIds - 父级菜单编号集
      modelId - 父级菜单编号,用于导入子菜单设置父级菜单编号
    • updateEntity

      void updateEntity(ModelEntity model)
      修改
      Parameters:
      model -
    • saveEntity

      void saveEntity(ModelEntity model)
      保存
      Parameters:
      model -
    • queryChildList

      List<ModelEntity> queryChildList(ModelEntity modelEntity)
      此方法不动,怕影响其他地方使用 查询当前菜单下的一级菜单
      Parameters:
      modelEntity -
      Returns:
    • queryAllChildList

      List<ModelEntity> queryAllChildList(ModelEntity modelEntity)
      查询当前菜单所有的子集菜单和权限集合
      Parameters:
      modelEntity -
      Returns:
      菜单集合
    • saveModel

      void saveModel(ModelEntity modelEntity)
      保存菜单,并且为角色添加该新增菜单的权限(super不会给绑定的角色添加新增菜单的权限)
      Parameters:
      modelEntity -
    • delete

      void delete(int[] ids)
      根据菜单编号删除菜单
      Specified by:
      delete in interface net.mingsoft.base.biz.IBaseBiz<ModelEntity>
      Parameters:
      ids - 菜单编号集合