From e8c6d5c2f5ff1ccbdc1ba8bd05644e9525938d25 Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Fri, 16 Aug 2024 17:56:39 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-130872=20FBP=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E5=92=8C=E5=B9=B3=E5=8F=B0=20=E6=96=B0=E5=BB=BAsql=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86=EF=BC=8C=E8=AE=BE=E7=BD=AE=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=9D=E5=AD=98=E5=90=8E=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=B2=A1=E6=9C=89=E4=BF=9D=E5=AD=98=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/env/function/DesignDatasourceComponent.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java index 54d0eef1eb..89588c6430 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java @@ -12,6 +12,11 @@ import com.fanruan.config.impl.data.ConnectionConfigWriter; import com.fanruan.config.impl.data.ConnectionConfigWriterFactory; import com.fanruan.config.impl.data.TableDataConfigProviderFactory; import com.fanruan.data.ConnectionConfigWrapper; +import com.fr.base.MultiParameterParser; +import com.fr.base.ParameterType; +import com.fr.base.ParameterTypeHandler; +import com.fr.base.parameter.FormulaParameterParser; +import com.fr.base.parameter.TableColumnParameterParser; import com.fr.data.driver.classloader.DriverClassLoaderHelper; import com.fr.data.driver.classloader.impl.ChildFirstDriverClassLoader; import com.fr.data.driver.classloader.impl.ChildOnlyDriverClassLoader; @@ -65,6 +70,10 @@ public class DesignDatasourceComponent extends DatasourceComponent { registerDriverClassLoader(); ConnectionConfigWriterFactory.registerConnectionConfigWriter((ConnectionConfigWriter) ConnectionConfigProviderFactory.getConfigProvider()); Carina.getApplicationContext().singleton(ConnectionWriterShell.class).set(ConnectionConfigWriterFactory.getConfigWriter()); + ParameterTypeHandler.getInstance().addParser(ParameterType.Multi.name(), new MultiParameterParser()); + ParameterTypeHandler.getInstance().addParser(ParameterType.JSONArray.name(), new MultiParameterParser()); + ParameterTypeHandler.getInstance().addParser(ParameterType.Formula.name(), new FormulaParameterParser()); + ParameterTypeHandler.getInstance().addParser(ParameterType.TableColumn.name(), new TableColumnParameterParser()); } private void registerDriverClassLoader() {