@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, updateForSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, 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)
IMenuServicedelMenu in interface IMenuService@Transactional public void delMenuContainSubMenus(Long menuId)
IMenuServicedelMenuContainSubMenus in interface IMenuServicepublic List<Map<String,Object>> selectMenus(String condition, String level)
IMenuServiceselectMenus in interface IMenuServicepublic List<Long> getMenuIdsByRoleId(Integer roleId)
IMenuServicegetMenuIdsByRoleId in interface IMenuServicepublic List<ZTreeNode> menuTreeList()
IMenuServicemenuTreeList in interface IMenuServicepublic List<ZTreeNode> menuTreeListByMenuIds(List<Long> menuIds)
IMenuServicemenuTreeListByMenuIds in interface IMenuServicepublic int deleteRelationByMenu(Long menuId)
IMenuServicedeleteRelationByMenu in interface IMenuServicepublic List<String> getResUrlsByRoleId(Integer roleId)
IMenuServicegetResUrlsByRoleId in interface IMenuServicepublic List<MenuNode> getMenusByRoleIds(List<Integer> roleIds)
IMenuServicegetMenusByRoleIds in interface IMenuServiceCopyright © 2018. All rights reserved.