puzhibing
2026-05-12 08cc6d5cf7e93b75cfabe7dcc2aeaa9afa1117eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.xiaopeng.account.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaopeng.api.model.account.SysRole;
import org.apache.ibatis.annotations.Param;
 
/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2026-02-03
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
 
    /**
     * 统计绑定该角色的用户数
     *
     * @param roleId 角色ID
     * @return 绑定用户数
     */
    Long countBindUsers(@Param("roleId") Long roleId);
}