fix(tenant): 将 TenantUtils.executeIgnore 方法改为静态方法

This commit is contained in:
2025-07-20 14:11:30 +08:00
parent 12746d6261
commit 43ba770971

View File

@@ -88,7 +88,7 @@ public class TenantUtils {
* *
* @param runnable 业务逻辑 * @param runnable 业务逻辑
*/ */
public void executeIgnore(Runnable runnable) { public static void executeIgnore(Runnable runnable) {
// 未启用或忽略租户,直接执行业务逻辑 // 未启用或忽略租户,直接执行业务逻辑
if (TenantContextHolder.isTenantDisabled() || TenantContextHolder.isIgnore()) { if (TenantContextHolder.isTenantDisabled() || TenantContextHolder.isIgnore()) {
runnable.run(); runnable.run();