mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-10-01 14:57:13 +08:00
fix(tenant): 将 TenantUtils.executeIgnore 方法改为静态方法
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user