RoleMenuMapper.java
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.huaheng.pc.system.role.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaheng.pc.manager.apkinfo.domain.Apkinfo;
import com.huaheng.pc.system.role.domain.RoleMenu;
import org.springframework.stereotype.Service;
import java.util.List;
/**
 * 角色与菜单关联表 数据层
 * 
 * @author huaheng
 */
@Service
public interface RoleMenuMapper extends BaseMapper<RoleMenu>
{
    /**
     * 通过角色ID删除角色和菜单关联
     * 
     * @param id 角色ID
     * @return 结果
     */
    public int deleteRoleMenuByRoleId(Integer id);
    
    /**
     * 批量删除角色菜单关联信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteRoleMenu(Integer[] ids);
    
    /**
     * 查询菜单使用数量
     * 
     * @param menuId 菜单ID
     * @return 结果
     */
    public int selectCountRoleMenuByMenuId(Integer menuId);
    
    /**
     * 批量新增角色菜单信息
     * 
     * @param roleMenuList 角色菜单列表
     * @return 结果
     */
    public int batchRoleMenu(List<RoleMenu> roleMenuList);
}