package cn.stylefeng.guns.sys.modular.system.mapper; import cn.stylefeng.guns.base.pojo.node.MenuNode; import cn.stylefeng.guns.base.pojo.node.ZTreeNode; import cn.stylefeng.guns.sys.modular.system.entity.Menu; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** *

* 菜单表 Mapper 接口 *

* * @author stylefeng * @since 2018-12-07 */ public interface MenuMapper extends BaseMapper { /** * 根据条件查询菜单 * * @return * @date 2017年2月12日 下午9:14:34 */ Page> selectMenus(@Param("page") Page page, @Param("condition") String condition, @Param("level") String level, @Param("menuId") Long menuId, @Param("code") String code); /** * 根据条件查询菜单 * * @return * @date 2017年2月12日 下午9:14:34 */ List getMenuIdsByRoleId(@Param("roleId") Long 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(@Param("menuId") Long menuId); /** * 获取资源url通过角色id * * @param roleId * @return * @date 2017年2月19日 下午7:12:38 */ List getResUrlsByRoleId(@Param("roleId") Long roleId); /** * 根据角色获取菜单 * * @param roleIds * @return * @date 2017年2月19日 下午10:35:40 */ List getMenusByRoleIds(List roleIds); /** * 根据角色获取菜单的类型列表 * * @param roleIds * @return * @date 2019年07月11日16:26:27 */ List getMenusTypesByRoleIds(List roleIds); /** * 查询菜单树形列表 * * @author fengshuonan * @Date 2019/2/23 22:03 */ List> selectMenuTree(@Param("condition") String condition, @Param("level") String level); /** * 获取pcodes like某个code的菜单列表 * * @author fengshuonan * @Date 2019/3/31 15:51 */ List getMenusLikePcodes(@Param("code") String code); }