Merge pull request #925 from Miegarer/patch-1

Update TenantDatabaseInterceptor.java
This commit is contained in:
芋道源码
2025-08-24 15:48:53 +08:00
committed by GitHub

View File

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