Blame view

src/main/java/com/huaheng/pc/system/user/mapper/UserRoleMapper.java 955 Bytes
tangying authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.huaheng.pc.system.user.mapper;

import java.util.List;
import com.huaheng.pc.system.user.domain.UserRole;

/**
 * 用户表 数据层
 * 
 * @author huaheng
 */
public interface UserRoleMapper
{

    /**
     * 通过用户ID删除用户和角色关联
     * 
     * @param userId 用户ID
     * @return 结果
     */
周鸿 authored
20
    public int deleteUserRoleByUserId(Integer userId,String warehouseCode);
tangying authored
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

    /**
     * 批量删除用户和角色关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteUserRole(Integer[] ids);

    /**
     * 通过角色ID查询角色使用数量
     * 
     * @param roleId 角色ID
     * @return 结果
     */
    public int countUserRoleByRoleId(Integer roleId);

    /**
     * 批量新增用户角色信息
     * 
     * @param userRoleList 用户角色列表
     * @return 结果
     */
    public int batchUserRole(List<UserRole> userRoleList);

}