feat: Spring Boot 整合 Spring Cache 和 Redis 缓存
This commit is contained in:
@@ -5,7 +5,7 @@ import com.youlai.system.model.entity.SysUserRole;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 用户角色持久层
|
||||
* 用户角色访问层
|
||||
*
|
||||
* @author haoxr
|
||||
* @since 2022/1/15
|
||||
@@ -13,4 +13,10 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
@Mapper
|
||||
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
|
||||
|
||||
/**
|
||||
* 统计角色下绑定的用户数量
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
*/
|
||||
int countUsersForRole(Long roleId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user