@Service(value="modelBiz") @Transactional public class ModelBizImpl extends net.mingsoft.base.biz.impl.BaseBizImpl<IModelDao,ModelEntity> implements IModelBiz
| 构造器和说明 |
|---|
ModelBizImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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定。
|
IModelDao |
getModelDao()
获取模块持久化层
|
void |
importModel(ModelEntity modelEntity,
int mangerRoleId,
String parentIds,
Integer modelId)
导入菜单
|
void |
jsonToModel(String menuStr,
int mangerRoleId,
int modelId)
已过时。
|
List<ModelEntity> |
queryChildList(ModelEntity modelEntity)
查询当前菜单所有的子集菜单
|
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)
修改
|
alterTable, countBySQL, countBySQL, createTable, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, getOne, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateCache, updateEntitycloseSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterTable, 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, updateByIdpublic ModelEntity getEntityByModelCode(net.mingsoft.base.constant.e.BaseEnum modelCode)
IModelBizgetEntityByModelCode 在接口中 IModelBizmodelCode - 模块编号public ModelEntity getEntityByModelCode(String modelCode)
IModelBizgetEntityByModelCode 在接口中 IModelBizmodelCode - 模块编号public IModelDao getModelDao()
@Autowired public void setModelDao(IModelDao modelDao)
protected net.mingsoft.base.dao.IBaseDao getDao()
getDao 在类中 net.mingsoft.base.biz.impl.BaseBizImpl<IModelDao,ModelEntity>public ModelEntity getModel(String modelType, int modelId)
IModelBizpublic List<ModelEntity> queryModelByRoleId(int roleId)
IModelBizqueryModelByRoleId 在接口中 IModelBizroleId - 角色ID@Deprecated @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@Deprecated @Transactional(rollbackFor=java.lang.Exception.class) public void jsonToModel(String menuStr, int mangerRoleId, int modelId)
IModelBizjsonToModel 在接口中 IModelBizmenuStr - 菜单jsonmangerRoleId - 当前管理员的角色idmodelId - 父级菜单编号,用于导入子菜单设置父级菜单编号@Transactional(rollbackFor={java.lang.Exception.class,java.lang.Error.class})
public void importModel(ModelEntity modelEntity,
int mangerRoleId,
String parentIds,
Integer modelId)
IModelBizimportModel 在接口中 IModelBizmodelEntity - 菜单实体mangerRoleId - 当前管理员的角色idparentIds - 父级菜单编号集modelId - 父级菜单编号,用于导入子菜单设置父级菜单编号public void updateEntity(ModelEntity model)
IModelBizupdateEntity 在接口中 IModelBizpublic void saveEntity(ModelEntity model)
IModelBizsaveEntity 在接口中 IModelBizpublic List<ModelEntity> queryChildList(ModelEntity modelEntity)
IModelBizqueryChildList 在接口中 IModelBizCopyright © 2022. All rights reserved.