You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
897 B
45 lines
897 B
package com.bs.system.mapper;
|
|
|
|
import java.util.List;
|
|
import com.bs.system.domain.SysRoleMenu;
|
|
|
|
/**
|
|
* 角色与菜单关联表 数据层
|
|
*
|
|
* @author bs
|
|
*/
|
|
public interface SysRoleMenuMapper
|
|
{
|
|
/**
|
|
* 查询菜单使用数量
|
|
*
|
|
* @param menuId 菜单ID
|
|
* @return 结果
|
|
*/
|
|
public int checkMenuExistRole(Long menuId);
|
|
|
|
/**
|
|
* 通过角色ID删除角色和菜单关联
|
|
*
|
|
* @param roleId 角色ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteRoleMenuByRoleId(Long roleId);
|
|
|
|
/**
|
|
* 批量删除角色菜单关联信息
|
|
*
|
|
* @param ids 需要删除的数据ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteRoleMenu(Long[] ids);
|
|
|
|
/**
|
|
* 批量新增角色菜单信息
|
|
*
|
|
* @param roleMenuList 角色菜单列表
|
|
* @return 结果
|
|
*/
|
|
public int batchRoleMenu(List<SysRoleMenu> roleMenuList);
|
|
}
|