Update TenantDatabaseInterceptor.java

修正注释,使其准确反映代码行为。
This commit is contained in:
Miegarer 2025-08-11 16:21:42 +08:00 committed by GitHub
parent 199467a70d
commit c2e1bc470a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ public class TenantDatabaseInterceptor implements TenantLineHandler {
if (TenantBaseDO.class.isAssignableFrom(tableInfo.getEntityType())) {
return false;
}
// 如果添加了 @TenantIgnore 注解显然也不忽略租户
// 如果添加了 @TenantIgnore 注解忽略租户
TenantIgnore tenantIgnore = tableInfo.getEntityType().getAnnotation(TenantIgnore.class);
return tenantIgnore != null;
}