@Service public class MenuServiceImpl extends com.baomidou.mybatisplus.service.impl.ServiceImpl<MenuMapper,Menu> implements IMenuService
Constructor and Description |
---|
MenuServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
deleteRelationByMenu(Long menuId)
删除menu关联的relation
|
void |
delMenu(Long menuId)
删除菜单
|
void |
delMenuContainSubMenus(Long menuId)
删除菜单包含所有子菜单
|
List<Long> |
getMenuIdsByRoleId(Integer roleId)
根据条件查询菜单
|
List<MenuNode> |
getMenusByRoleIds(List<Integer> roleIds)
根据角色获取菜单
|
List<String> |
getResUrlsByRoleId(Integer roleId)
获取资源url通过角色id
|
List<ZTreeNode> |
menuTreeList()
获取菜单列表树
|
List<ZTreeNode> |
menuTreeListByMenuIds(List<Long> menuIds)
获取菜单列表树
|
List<Map<String,Object>> |
selectMenus(String condition,
String level)
根据条件查询菜单
|
currentModelClass, delete, deleteBatchIds, deleteById, deleteByMap, insert, insertAllColumn, insertBatch, insertBatch, insertOrUpdate, insertOrUpdateAllColumn, insertOrUpdateAllColumnBatch, insertOrUpdateAllColumnBatch, insertOrUpdateBatch, insertOrUpdateBatch, retBool, selectBatchIds, selectById, selectByMap, selectCount, selectList, selectMap, selectMaps, selectMapsPage, selectObj, selectObjs, selectOne, selectPage, selectPage, sqlSessionBatch, sqlStatement, update, updateAllColumnBatchById, updateAllColumnBatchById, updateAllColumnById, updateBatchById, updateBatchById, updateById, updateForSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteBatchIds, deleteById, deleteByMap, insert, insertAllColumn, insertBatch, insertBatch, insertOrUpdate, insertOrUpdateAllColumn, insertOrUpdateAllColumnBatch, insertOrUpdateAllColumnBatch, insertOrUpdateBatch, insertOrUpdateBatch, selectBatchIds, selectById, selectByMap, selectCount, selectList, selectMap, selectMaps, selectMapsPage, selectObj, selectObjs, selectOne, selectPage, selectPage, update, updateAllColumnBatchById, updateAllColumnBatchById, updateAllColumnById, updateBatchById, updateBatchById, updateById, updateForSet
@Transactional public void delMenu(Long menuId)
IMenuService
delMenu
in interface IMenuService
@Transactional public void delMenuContainSubMenus(Long menuId)
IMenuService
delMenuContainSubMenus
in interface IMenuService
public List<Map<String,Object>> selectMenus(String condition, String level)
IMenuService
selectMenus
in interface IMenuService
public List<Long> getMenuIdsByRoleId(Integer roleId)
IMenuService
getMenuIdsByRoleId
in interface IMenuService
public List<ZTreeNode> menuTreeList()
IMenuService
menuTreeList
in interface IMenuService
public List<ZTreeNode> menuTreeListByMenuIds(List<Long> menuIds)
IMenuService
menuTreeListByMenuIds
in interface IMenuService
public int deleteRelationByMenu(Long menuId)
IMenuService
deleteRelationByMenu
in interface IMenuService
public List<String> getResUrlsByRoleId(Integer roleId)
IMenuService
getResUrlsByRoleId
in interface IMenuService
public List<MenuNode> getMenusByRoleIds(List<Integer> roleIds)
IMenuService
getMenusByRoleIds
in interface IMenuService
Copyright © 2018. All rights reserved.