wuzeyu
2024-01-15 835ac4c14a2ae8d17578e2b7bbbaa54d5a12f40a
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
52
53
54
55
56
package com.dy.pipIrrGlobal.daoBa;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoBa.BaUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
@Mapper
public interface BaUserRoleMapper extends BaseMapper<BaUserRole> {
 
    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int putin(BaUserRole record);
 
    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(BaUserRole record);
 
    /**
     * delete by primary key
     * @param userId primaryKey
     * @param roleId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(@Param("userId") Long userId, @Param("roleId") Long roleId);
 
    /**
     * delete by primary key
     * @param userId primaryKey
     * @return deleteCount
     */
    int deleteByUserId(@Param("userId") Long userId);
 
    /**
     * delete by primary key
     * @param roleId primaryKey
     * @return deleteCount
     */
    int deleteByRoleId(@Param("roleId") Long roleId);
 
    /**
     * 根据用户编号获取权限列表
     * @param userId
     * @return
     */
    List<Map<String, Object>> getPermissionsByUserId(@Param("userId") Long userId);
}