wuzeyu
2024-05-23 781aaa24d1f12659581eb545fc4ee678e4d85b7f
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
57
58
59
60
61
62
63
64
65
package com.dy.pipIrrGlobal.daoBa;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoBa.BaRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @author ZhuBaoMin
 * @date 2024-01-10 11:00
 * @LastEditTime 2024-01-10 11:00
 * @Description
 */
 
@Mapper
public interface BaRoleMapper extends BaseMapper<BaRole> {
    int deleteByPrimaryKey(Long id);
 
    int insert(BaRole record);
 
    int insertSelective(BaRole record);
 
    BaRole selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(BaRole record);
 
    int updateByPrimaryKey(BaRole record);
 
    /**
     * 查询某个用户所隶属于的角色
     * @param userId 用户ID
     * @return List<BaRole>
     */
    List<BaRole> selectByUserId(@Param("userId") Long userId) ;
 
    /**
     * 根据角色名称查询记录数量
     * @param roleName
     * @return
     */
    Integer getRecordCountByName(@Param("roleName") String roleName);
 
    ///**
    // * 根据指定条件获取角色记录数
    // * @param params
    // * @return
    // */
    //Long getRecordCount(Map<?, ?> params);
    //
    ///**
    // * 根据指定条件获取角色记录
    // * @param params
    // * @return
    // */
    //List<VoRole> getRoles(Map<?, ?> params);
 
    /**
     * 根据roleId逻辑删除角色对象
     * @param roleId
     * @return
     */
    Integer deleteRoleById(@Param("roleId") Long roleId);
}