package com.dsh.course.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dsh.course.model.node.MenuNode; import com.dsh.course.model.node.ZTreeNode; import com.dsh.guns.modular.system.model.Menu; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** *

* 菜单表 Mapper 接口 *

* * @author stylefeng * @since 2017-07-11 */ public interface MenuMapper extends BaseMapper { /** * 根据条件查询菜单 * * @return * @date 2017年2月12日 下午9:14:34 */ List> selectMenus(@Param("condition") String condition, @Param("level") String level); /** * 根据条件查询菜单 * * @return * @date 2017年2月12日 下午9:14:34 */ List getMenuIdsByRoleId(@Param("roleId") Integer roleId); /** * 获取菜单列表树 * * @return * @date 2017年2月19日 下午1:33:51 */ List menuTreeList(); /** * 获取菜单列表树 * * @return * @date 2017年2月19日 下午1:33:51 */ List menuTreeListByMenuIds(List menuIds); /** * 删除menu关联的relation * * @param menuId * @return * @date 2017年2月19日 下午4:10:59 */ int deleteRelationByMenu(Long menuId); /** * 获取资源url通过角色id * * @param roleId * @return * @date 2017年2月19日 下午7:12:38 */ List getResUrlsByRoleId(Integer roleId); /** * 根据角色获取菜单 * * @param roleIds * @return * @date 2017年2月19日 下午10:35:40 */ List getMenusByRoleIds(List roleIds); }