fix(后台管理): 新增租户ID=null的情况下跳过租户过滤,删除无用的定时任务逻辑
This commit is contained in:
+6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user