@Service public class SysRoleMenuServiceImpl extends ExtendServiceImpl<SysRoleMenuMapper,SysRoleMenu> implements SysRoleMenuService
角色菜单表 服务实现类
baseMapper, entityClass, log, mapperClassDEFAULT_BATCH_SIZE| 构造器和说明 |
|---|
SysRoleMenuServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteByMenuId(Serializable menuId)
根据权限ID删除角色权限关联数据
|
void |
deleteByRoleCode(String roleCode)
根据角色标识删除角色权限关联关系
|
Boolean |
saveRoleMenus(String roleCode,
Long[] menuIds)
更新角色菜单
|
int |
updateMenuId(Long originalId,
Long menuId)
更新某个菜单的 id
|
currentMapperClass, currentModelClass, executeBatch, getBaseMapper, getEntityClass, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, save, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateById@Transactional(rollbackFor=java.lang.Exception.class) public Boolean saveRoleMenus(String roleCode, Long[] menuIds)
SysRoleMenuServicesaveRoleMenus 在接口中 SysRoleMenuServiceroleCode - 角色menuIds - 权限ID集合public void deleteByMenuId(Serializable menuId)
deleteByMenuId 在接口中 SysRoleMenuServicemenuId - 权限IDpublic void deleteByRoleCode(String roleCode)
deleteByRoleCode 在接口中 SysRoleMenuServiceroleCode - 角色标识public int updateMenuId(Long originalId, Long menuId)
updateMenuId 在接口中 SysRoleMenuServiceoriginalId - 原菜单IDmenuId - 修改后的菜单IdCopyright © 2023. All rights reserved.