|
|
@ -9,8 +9,10 @@ import com.fr.data.MultiResultTableData; |
|
|
|
import com.fr.data.TableDataSource; |
|
|
|
import com.fr.data.TableDataSource; |
|
|
|
import com.fr.data.TableDataSourceTailor; |
|
|
|
import com.fr.data.TableDataSourceTailor; |
|
|
|
import com.fr.data.core.DataCoreXmlUtils; |
|
|
|
import com.fr.data.core.DataCoreXmlUtils; |
|
|
|
|
|
|
|
import com.fr.data.impl.ConditionTableData; |
|
|
|
import com.fr.data.impl.EmbeddedTableData; |
|
|
|
import com.fr.data.impl.EmbeddedTableData; |
|
|
|
import com.fr.data.impl.NameDataModel; |
|
|
|
import com.fr.data.impl.NameDataModel; |
|
|
|
|
|
|
|
import com.fr.data.impl.RecursionTableData; |
|
|
|
import com.fr.data.impl.storeproc.ProcedureDataModel; |
|
|
|
import com.fr.data.impl.storeproc.ProcedureDataModel; |
|
|
|
import com.fr.data.impl.storeproc.StoreProcedure; |
|
|
|
import com.fr.data.impl.storeproc.StoreProcedure; |
|
|
|
import com.fr.data.impl.storeproc.StoreProcedureConstants; |
|
|
|
import com.fr.data.impl.storeproc.StoreProcedureConstants; |
|
|
@ -589,7 +591,7 @@ public abstract class DesignTableDataManager { |
|
|
|
bean.setStart(rowCount); |
|
|
|
bean.setStart(rowCount); |
|
|
|
bean.setEnd(-1); |
|
|
|
bean.setEnd(-1); |
|
|
|
bean.updateConvertMap(parameterMap); |
|
|
|
bean.updateConvertMap(parameterMap); |
|
|
|
if (checkBean(bean)) { |
|
|
|
if (checkBean(bean, tabledata)) { |
|
|
|
return (EmbeddedTableData) TableDataRepository.getInstance().previewTableData(bean).getTableData(); |
|
|
|
return (EmbeddedTableData) TableDataRepository.getInstance().previewTableData(bean).getTableData(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
PreviewDataBean dataBean = new PreviewDataBean(); |
|
|
|
PreviewDataBean dataBean = new PreviewDataBean(); |
|
|
@ -624,9 +626,16 @@ public abstract class DesignTableDataManager { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static boolean checkBean(PreviewSourceBean bean) { |
|
|
|
private static boolean checkBean(PreviewSourceBean bean, TableData tableData) { |
|
|
|
// dataName为空说明是新建的,得用tabledata传
|
|
|
|
if (bean.getDataName().isEmpty()) { |
|
|
|
return !bean.getDataName().isEmpty(); |
|
|
|
if (tableData instanceof ConditionTableData || tableData instanceof RecursionTableData) { |
|
|
|
|
|
|
|
bean.getDataSource().putTableData(StringUtils.EMPTY, tableData); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// dataName为空并且不为特殊的数据集说明是新建的,得用tabledata传
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static boolean needInputParams(boolean mustInputParameters, ParameterProvider[] parameters) { |
|
|
|
private static boolean needInputParams(boolean mustInputParameters, ParameterProvider[] parameters) { |
|
|
|