Package net.mingsoft.basic.biz
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
模块业务接口
- 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 TypeMethodDescriptionvoiddelete(int[] ids) 根据菜单编号删除菜单getEntityByModelCode(String modelCode) 根据模块编号查询模块实体getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode) 根据模块编号查询模块实体根据模块id获取当前项目中的分类模块id,规则根据modelcode定。voidimportModel(ModelEntity modelEntity, int mangerRoleId, String parentIds, Integer modelId) 导入菜单voidjsonToModel(String menuStr, int mangerRoleId, int modelId) Deprecated.此方法已废弃 推荐使用importModel方法queryAllChildList(ModelEntity modelEntity) 查询当前菜单所有的子集菜单和权限集合queryChildList(ModelEntity modelEntity) 此方法不动,怕影响其他地方使用 查询当前菜单下的一级菜单queryModelByRoleId(int roleId) 根据角色ID查询模块集合voidreModel(ModelEntity modelParent, String parentIds, int mangerRoleId, List<RoleModelEntity> roleModels, Integer parentId) Deprecated.此方法已废弃 推荐使用importModel方法voidsaveEntity(ModelEntity model) 保存voidsaveModel(ModelEntity modelEntity) 保存菜单,并且为角色添加该新增菜单的权限(super不会给绑定的角色添加新增菜单的权限)voidupdateEntity(ModelEntity model) 修改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, 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
-
Method Details
-
queryModelByRoleId
根据角色ID查询模块集合- Parameters:
roleId- 角色ID- Returns:
- 返回模块集合
-
getEntityByModelCode
根据模块编号查询模块实体- Parameters:
modelCode- 模块编号- Returns:
- 返回模块实体
-
getEntityByModelCode
根据模块编号查询模块实体- Parameters:
modelCode- 模块编号- Returns:
- 返回模块实体
-
getModel
根据模块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- 父级idsmangerRoleId- 管理员idroleModels- 角色mode数组parentId- 父级id
-
jsonToModel
Deprecated.此方法已废弃 推荐使用importModel方法字符串转菜单- Parameters:
menuStr- 菜单jsonmangerRoleId- 当前管理员的角色idmodelId- 父级菜单编号,用于导入子菜单设置父级菜单编号
-
importModel
导入菜单- Parameters:
modelEntity- 菜单实体mangerRoleId- 当前管理员的角色idparentIds- 父级菜单编号集modelId- 父级菜单编号,用于导入子菜单设置父级菜单编号
-
updateEntity
修改- Parameters:
model-
-
saveEntity
保存- Parameters:
model-
-
queryChildList
此方法不动,怕影响其他地方使用 查询当前菜单下的一级菜单- Parameters:
modelEntity-- Returns:
-
queryAllChildList
查询当前菜单所有的子集菜单和权限集合- Parameters:
modelEntity-- Returns:
- 菜单集合
-
saveModel
保存菜单,并且为角色添加该新增菜单的权限(super不会给绑定的角色添加新增菜单的权限)- Parameters:
modelEntity-
-
delete
void delete(int[] ids) 根据菜单编号删除菜单- Specified by:
deletein interfacenet.mingsoft.base.biz.IBaseBiz<ModelEntity>- Parameters:
ids- 菜单编号集合
-