Browse Source

REPORT-130872 FBP设计器和平台 新建sql数据集,设置公式参数保存后再次打开没有保存上

fbp-1.0
Destiny.Lin 3 months ago
parent
commit
e8c6d5c2f5
  1. 9
      designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java

9
designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java vendored

@ -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() {

Loading…
Cancel
Save