fix(后台管理): 新增租户ID=null的情况下跳过租户过滤,删除无用的定时任务逻辑

This commit is contained in:
2025-07-30 01:57:19 +08:00
parent 9eb250d0f0
commit bdc1ffdfd3
2 changed files with 8 additions and 23 deletions
@@ -48,6 +48,12 @@ public class CustomTenantInterceptor extends TenantLineInnerInterceptor {
return;
}
// 租户为null时跳过租户过滤
if (null == tenant) {
log.debug("租户为null,SQL {} 跳过租户过滤", msId);
return;
}
// 如果在忽略列表中,直接返回,不执行租户过滤
if (isIgnoreMappedStatement(msId)) {
log.debug("SQL {} 在忽略列表中,跳过租户过滤", msId);