From b5efed073b0e2a27cb50c075024b49938ae0e9fb 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: Thu, 12 Sep 2024 10:55:41 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/datascope/constant/DataScopeConstant.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/blade-starter-datascope/src/main/java/org/springblade/core/datascope/constant/DataScopeConstant.java b/blade-starter-datascope/src/main/java/org/springblade/core/datascope/constant/DataScopeConstant.java index 5631dd5..af994c4 100644 --- a/blade-starter-datascope/src/main/java/org/springblade/core/datascope/constant/DataScopeConstant.java +++ b/blade-starter-datascope/src/main/java/org/springblade/core/datascope/constant/DataScopeConstant.java @@ -15,7 +15,7 @@ */ package org.springblade.core.datascope.constant; -import org.springblade.core.tool.utils.StringUtil; +import java.util.StringJoiner; /** * 数据权限常量 @@ -53,12 +53,11 @@ public interface DataScopeConstant { * @return String */ static String buildHolder(int size) { - StringBuilder builder = StringUtil.builder(); + StringJoiner joiner = new StringJoiner(","); for (int i = 0; i < size; i++) { - builder.append("?,"); + joiner.add("?"); } - return StringUtil.removeSuffix(builder.toString(), ","); + return joiner.toString(); } - }