public interface IModelBiz extends net.mingsoft.base.biz.IBaseBiz<ModelEntity>
| 限定符和类型 | 方法和说明 |
|---|---|
ModelEntity |
getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
根据模块编号查询模块实体
|
ModelEntity |
getEntityByModelCode(String modelCode)
根据模块编号查询模块实体
|
ModelEntity |
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)
已过时。
此方法已废弃 推荐使用importModel方法
|
List<ModelEntity> |
queryChildList(ModelEntity modelEntity)
查询当前菜单所有的子集菜单
|
List<ModelEntity> |
queryModelByRoleId(int roleId)
根据角色ID查询模块集合
|
void |
reModel(ModelEntity modelParent,
String parentIds,
int mangerRoleId,
List<RoleModelEntity> roleModels,
Integer parentId)
已过时。
此方法已废弃 推荐使用importModel方法
|
void |
saveEntity(ModelEntity model)
保存
|
void |
updateEntity(ModelEntity model)
修改
|
alterTable, countBySQL, countBySQL, createTable, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateCache, updateEntitycount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdList<ModelEntity> queryModelByRoleId(int roleId)
roleId - 角色IDModelEntity getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
modelCode - 模块编号ModelEntity getEntityByModelCode(String modelCode)
modelCode - 模块编号ModelEntity getModel(String modelType, int modelId)
modelType - 模块类型modelId - 模块IDvoid reModel(ModelEntity modelParent, String parentIds, int mangerRoleId, List<RoleModelEntity> roleModels, Integer parentId)
modelParent - 菜单实体parentIds - 父级idsmangerRoleId - 管理员idroleModels - 角色mode数组parentId - 父级idvoid jsonToModel(String menuStr, int mangerRoleId, int modelId)
menuStr - 菜单jsonmangerRoleId - 当前管理员的角色idmodelId - 父级菜单编号,用于导入子菜单设置父级菜单编号void importModel(ModelEntity modelEntity, int mangerRoleId, String parentIds, Integer modelId)
modelEntity - 菜单实体mangerRoleId - 当前管理员的角色idparentIds - 父级菜单编号集modelId - 父级菜单编号,用于导入子菜单设置父级菜单编号void updateEntity(ModelEntity model)
model - void saveEntity(ModelEntity model)
model - List<ModelEntity> queryChildList(ModelEntity modelEntity)
modelEntity - Copyright © 2022. All rights reserved.