From bffaec522a43048a6a3c72bf4056b99b83fd0d8c Mon Sep 17 00:00:00 2001 From: rinoux Date: Tue, 10 Aug 2021 13:51:10 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-56263=20=E6=96=B0=E5=BB=BA=E5=85=B6?= =?UTF-8?q?=E5=AE=83=E6=95=B0=E6=8D=AE=E9=9B=86=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/data/datapane/TableDataTreePane.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java index 8a76522907..b95c03ac6b 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java @@ -230,13 +230,14 @@ public class TableDataTreePane extends BasicTableDataTreePane { protected TemplateTableDataWrapper getTableDataInstance() { TableData tableData = (TableData) creator.createObject(); - //新建的DBTableData单独换为DBTableData + //11中所有数据集都是StrategicTableData的子类 if (tableData instanceof StrategicTableData) { - tableData = new DBTableData(); - StrategicTableData.Binder - .bind((DBTableData) tableData) + StrategicTableData std = (StrategicTableData) tableData; + tableData = StrategicTableData.Binder + .bind(std) .setDsName(createDsName(creator.getPrefix())) - .setScope(StrategicTableData.Scope.TEMPLATE); + .setScope(StrategicTableData.Scope.TEMPLATE) + .done(); } return new TemplateTableDataWrapper(tableData); }