public interface TableHandler
| 限定符和类型 | 方法和说明 |
|---|---|
List<DataScope> |
dataScopes()
获取系统配置的所有数据范围 返回系统中定义的所有数据域配置,用于多租户数据隔离
|
boolean |
enable()
判断是否启用表级别的多租户功能 用于控制是否对SQL进行表级别的租户字段隔离处理
|
List<DataScope> |
filterDataScopes(String mappedStatementId)
获取经过权限过滤后的数据范围集合 根据Mapper方法的权限注解,过滤出当前方法可以访问的数据范围
|
boolean |
ignore(String mappedStatementId)
判断是否忽略数据权限处理 用于设置某些特定的SQL操作不需要进行租户数据隔离处理
|
boolean enable()
List<DataScope> filterDataScopes(String mappedStatementId)
mappedStatementId - Mapper方法的全限定名boolean ignore(String mappedStatementId)
mappedStatementId - Mapper方法的全限定名Copyright © 2025. All rights reserved.