liuxm
2024-05-16 1494d3e47a0dbdc5f49dacd779b5ffab871a2022
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
package com.dy.pmsGlobal.daoBa;
 
import com.dy.pmsGlobal.pojoBa.BaRole;
import com.dy.pmsGlobal.pojoBa.BaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
@Mapper
public interface BaRoleMapper {
    BaRole selectByPrimaryKey(Long id);
 
 
    /**
     * 查询某个用户所隶属于的角色
     * @param userId 用户ID
     * @return List<BaRole>
     */
    List<BaRole> selectByUserId(@Param("userId") Long userId) ;
 
    int insert(BaRole record);
 
    int insertSelective(BaRole record);
 
 
    int updateByPrimaryKeySelective(BaRole record);
 
    int updateByPrimaryKey(BaRole record);
 
 
    int deleteByPrimaryKey(Long id);
 
    /**
     * 逻辑删除
     * @param id primaryKey
     * @return update count
     */
    int deleteLogicById(Long id);
 
    Long selectSomeCount(Map<String, Object> params);
 
    List<BaRole> selectSome(Map<String, Object> params);
 
    List<BaRole> selectAll();
}