@Service(value="modelBiz") @Transactional public class ModelBizImpl extends net.mingsoft.base.biz.impl.BaseBizImpl implements IModelBiz
| 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<ModelEntity> |
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, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateEntitycloseSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountBySQL, createTable, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateEntitycount, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic 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<ModelEntity> 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.