From 78dea9b2120376da65f57750e00b8c3f3a233e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <596392912@qq.com> Date: Mon, 29 Apr 2024 16:38:24 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B7=BB=E5=8A=A0=20TenantIdUtil?= =?UTF-8?q?=20=E6=96=B9=E4=BE=BF=E5=9C=A8=E9=9D=9E=20web=20=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/springblade/core/boot/tenant/TenantIdUtil.java | 2 ++ .../main/java/org/springblade/core/mp/support/SqlKeyword.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/blade-core-boot/src/main/java/org/springblade/core/boot/tenant/TenantIdUtil.java b/blade-core-boot/src/main/java/org/springblade/core/boot/tenant/TenantIdUtil.java index 28c3375..8400627 100644 --- a/blade-core-boot/src/main/java/org/springblade/core/boot/tenant/TenantIdUtil.java +++ b/blade-core-boot/src/main/java/org/springblade/core/boot/tenant/TenantIdUtil.java @@ -15,6 +15,7 @@ */ package org.springblade.core.boot.tenant; +import lombok.experimental.UtilityClass; import org.springblade.core.secure.utils.SecureUtil; import org.springframework.util.Assert; @@ -25,6 +26,7 @@ import java.util.function.Supplier; * * @author L.cm */ +@UtilityClass public class TenantIdUtil { private static final ThreadLocal tl = new ThreadLocal<>(); diff --git a/blade-core-mybatis/src/main/java/org/springblade/core/mp/support/SqlKeyword.java b/blade-core-mybatis/src/main/java/org/springblade/core/mp/support/SqlKeyword.java index e3e6f28..bfd5f8c 100644 --- a/blade-core-mybatis/src/main/java/org/springblade/core/mp/support/SqlKeyword.java +++ b/blade-core-mybatis/src/main/java/org/springblade/core/mp/support/SqlKeyword.java @@ -158,7 +158,7 @@ public class SqlKeyword { * @param param 关键字 * @return boolean */ - public static Boolean match(String param) { + public static boolean match(String param) { return Func.isNotEmpty(param) && PATTERN.matcher(param).find(); }