| Constructor and Description |
|---|
ModelBizImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected net.mingsoft.base.dao.IBaseDao |
getDao() |
ModelEntity |
getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
根据模块编号查询模块实体
|
ModelEntity |
getEntityByModelCode(String modelCode)
根据模块编号查询模块实体
|
ModelEntity |
getModel(String modelType,
int modelId)
根据模块id获取当前项目中的分类模块id,规则根据modelcode定。**99******,只用是第3位与第4位99
|
IModelDao |
getModelDao()
获取模块持久化层
|
void |
jsonToModel(String menuStr,
int mangerRoleId)
字符串转菜单
|
List<net.mingsoft.base.entity.BaseEntity> |
queryModelByRoleId(int roleId)
根据角色ID查询模块集合
|
void |
reModel(ModelEntity modelParent,
String parentIds,
int mangerRoleId,
List<RoleModelEntity> roleModels,
Integer parentId)
菜单新增递归方法
|
void |
saveEntity(ModelEntity model)
保存
|
void |
setModelDao(IModelDao modelDao) |
void |
updateEntity(ModelEntity model)
修改
|
countBySQL, createTable, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateEntitypublic ModelEntity getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
IModelBizgetEntityByModelCode in interface IModelBizmodelCode - 模块编号public ModelEntity getEntityByModelCode(String modelCode)
IModelBizgetEntityByModelCode in interface IModelBizmodelCode - 模块编号public IModelDao getModelDao()
@Autowired public void setModelDao(IModelDao modelDao)
protected net.mingsoft.base.dao.IBaseDao getDao()
getDao in class net.mingsoft.base.biz.impl.BaseBizImplpublic ModelEntity getModel(String modelType, int modelId)
IModelBizpublic List<net.mingsoft.base.entity.BaseEntity> queryModelByRoleId(int roleId)
IModelBizqueryModelByRoleId in interface IModelBizroleId - 角色ID@Transactional(rollbackFor={java.lang.Exception.class,java.lang.Error.class})
public void reModel(ModelEntity modelParent,
String parentIds,
int mangerRoleId,
List<RoleModelEntity> roleModels,
Integer parentId)
IModelBiz@Transactional(rollbackFor=java.lang.Exception.class) public void jsonToModel(String menuStr, int mangerRoleId)
IModelBizjsonToModel in interface IModelBizpublic void updateEntity(ModelEntity model)
IModelBizupdateEntity in interface IModelBizpublic void saveEntity(ModelEntity model)
IModelBizsaveEntity in interface IModelBizCopyright © 2020. All rights reserved.