From b372cfd1b3d455097934f898043c3dbb3fa077d0 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 4 Jul 2025 17:18:00 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E6=8A=A5=E8=A1=A8sql?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E4=B8=AD=E6=9C=AA=E6=94=AF=E6=8C=81@{DATA=5F?= =?UTF-8?q?SCHEMA}=E5=85=B3=E9=94=AE=E5=AD=97=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1458045727506432]报表sql语句中未支持@{DATA_SCHEMA}关键字替换 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1458045727506432 --- src/main/java/neatlogic/framework/sqlrunner/SqlRunner.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/neatlogic/framework/sqlrunner/SqlRunner.java b/src/main/java/neatlogic/framework/sqlrunner/SqlRunner.java index b558858e7..697a543dd 100644 --- a/src/main/java/neatlogic/framework/sqlrunner/SqlRunner.java +++ b/src/main/java/neatlogic/framework/sqlrunner/SqlRunner.java @@ -16,10 +16,7 @@ along with this program. If not, see .*/ package neatlogic.framework.sqlrunner; import neatlogic.framework.common.config.Config; -import neatlogic.framework.dao.plugin.LimitInterceptor; -import neatlogic.framework.dao.plugin.PageInterceptor; -import neatlogic.framework.dao.plugin.PageRowBounds; -import neatlogic.framework.dao.plugin.SqlCostInterceptor; +import neatlogic.framework.dao.plugin.*; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.builder.xml.XMLMapperBuilder; @@ -78,6 +75,7 @@ public class SqlRunner { } Configuration configuration = new Configuration(); + configuration.addInterceptor(new DataSchemaInterceptor()); configuration.addInterceptor(new SqlCostInterceptor()); configuration.addInterceptor(new LimitInterceptor()); configuration.addInterceptor(new PageInterceptor()); -- Gitee