Package net.mingsoft.basic.biz.impl
Class ModelBizImpl
java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
net.mingsoft.base.biz.impl.BaseBizImpl<IModelDao,ModelEntity>
net.mingsoft.basic.biz.impl.ModelBizImpl
- All Implemented Interfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<ModelEntity>,com.baomidou.mybatisplus.extension.service.IService<ModelEntity>,net.mingsoft.base.biz.IBaseBiz<ModelEntity>,IModelBiz
@Service("modelBiz")
@Transactional
public class ModelBizImpl
extends net.mingsoft.base.biz.impl.BaseBizImpl<IModelDao,ModelEntity>
implements IModelBiz
模块业务接口实现类
- Version:
- 版本号:100-000-000
创建日期:2012-03-15
历史修订: - Author:
- 张敏
-
Field Summary
Fields inherited from class net.mingsoft.base.biz.impl.BaseBizImpl
LOGFields inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
baseMapperFields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
logFields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int[] ids) 根据菜单编号删除菜单protected net.mingsoft.base.dao.IBaseDaogetDao()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.queryAllChildList(ModelEntity modelEntity) 查询当前菜单所有的子集菜单和权限集合queryChildList(ModelEntity modelEntity) 此方法不动,怕影响其他地方使用 查询当前菜单下的一级菜单queryModelByRoleId(int roleId) 根据角色ID查询模块集合voidreModel(ModelEntity modelParent, String parentIds, int mangerRoleId, List<RoleModelEntity> roleModels, Integer parentId) Deprecated.voidsaveEntity(ModelEntity model) 保存voidsaveModel(ModelEntity model) 保存菜单,并且为角色添加该新增菜单的权限(super不会给绑定的角色添加新增菜单的权限)voidsetModelDao(IModelDao modelDao) voidupdateEntity(ModelEntity model) 修改Methods inherited from class net.mingsoft.base.biz.impl.BaseBizImpl
alterTable, createTable, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, execute, getEntity, getEntity, getEntity, getOne, insert, insertBySQL, query, queryAll, queryCount, queryForList, queryForList, queryForListPage, saveBatch, saveEntity, update, update, updateBySQL, updateCache, updateEntityMethods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchByIdMethods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
ModelBizImpl
public ModelBizImpl()
-
-
Method Details
-
getEntityByModelCode
Description copied from interface:IModelBiz根据模块编号查询模块实体- Specified by:
getEntityByModelCodein interfaceIModelBiz- Parameters:
modelCode- 模块编号- Returns:
- 返回模块实体
-
getEntityByModelCode
Description copied from interface:IModelBiz根据模块编号查询模块实体- Specified by:
getEntityByModelCodein interfaceIModelBiz- Parameters:
modelCode- 模块编号- Returns:
- 返回模块实体
-
getModelDao
获取模块持久化层- Returns:
- modelDao 返回模块持久化层
-
setModelDao
-
getDao
protected net.mingsoft.base.dao.IBaseDao getDao()- Specified by:
getDaoin classnet.mingsoft.base.biz.impl.BaseBizImpl<IModelDao,ModelEntity>
-
getModel
Description copied from interface:IModelBiz根据模块id获取当前项目中的分类模块id,规则根据modelcode定。**99******,只用是第3位与第4位99 -
queryModelByRoleId
Description copied from interface:IModelBiz根据角色ID查询模块集合- Specified by:
queryModelByRoleIdin interfaceIModelBiz- Parameters:
roleId- 角色ID- Returns:
- 返回模块集合
-
reModel
@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) Deprecated.Description copied from interface:IModelBiz菜单新增递归方法 -
jsonToModel
@Deprecated @Transactional(rollbackFor=java.lang.Exception.class) public void jsonToModel(String menuStr, int mangerRoleId, int modelId) Deprecated.Description copied from interface:IModelBiz字符串转菜单- Specified by:
jsonToModelin interfaceIModelBiz- Parameters:
menuStr- 菜单jsonmangerRoleId- 当前管理员的角色idmodelId- 父级菜单编号,用于导入子菜单设置父级菜单编号
-
importModel
@Transactional(rollbackFor={java.lang.Exception.class,java.lang.Error.class}) public void importModel(ModelEntity modelEntity, int mangerRoleId, String parentIds, Integer modelId) Description copied from interface:IModelBiz导入菜单- Specified by:
importModelin interfaceIModelBiz- Parameters:
modelEntity- 菜单实体mangerRoleId- 当前管理员的角色idparentIds- 父级菜单编号集modelId- 父级菜单编号,用于导入子菜单设置父级菜单编号
-
updateEntity
Description copied from interface:IModelBiz修改- Specified by:
updateEntityin interfaceIModelBiz
-
saveEntity
Description copied from interface:IModelBiz保存- Specified by:
saveEntityin interfaceIModelBiz
-
queryChildList
Description copied from interface:IModelBiz此方法不动,怕影响其他地方使用 查询当前菜单下的一级菜单- Specified by:
queryChildListin interfaceIModelBiz- Returns:
-
queryAllChildList
Description copied from interface:IModelBiz查询当前菜单所有的子集菜单和权限集合- Specified by:
queryAllChildListin interfaceIModelBiz- Returns:
- 菜单集合
-
saveModel
@Transactional(rollbackFor={java.lang.Exception.class,java.lang.Error.class}) public void saveModel(ModelEntity model) Description copied from interface:IModelBiz保存菜单,并且为角色添加该新增菜单的权限(super不会给绑定的角色添加新增菜单的权限) -
delete
public void delete(int[] ids) Description copied from interface:IModelBiz根据菜单编号删除菜单- Specified by:
deletein interfacenet.mingsoft.base.biz.IBaseBiz<ModelEntity>- Specified by:
deletein interfaceIModelBiz- Overrides:
deletein classnet.mingsoft.base.biz.impl.BaseBizImpl<IModelDao,ModelEntity> - Parameters:
ids- 菜单编号集合
-