Merge pull request #2464 from dataease/pr@dev@fix_sql_dataset_view_plugin

fix: 插件视图不能使用sql数据集
This commit is contained in:
fit2cloud-chenyw 2022-06-21 15:43:08 +08:00 committed by GitHub
commit f6e5ce7ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,7 @@ public class ViewPluginBaseServiceImpl implements ViewPluginBaseService {
break;
case SQL:
tableName = dataSetTableService.handleVariableDefaultValue(dataTableInfoDTO.getSql(), pluginViewSet.getSqlVariableDetails());
tableName = "(" + tableName + ")";
break;
case CUSTOM:
List<DataSetTableUnionDTO> list = dataSetTableUnionService.listByTableId(dataTableInfoDTO.getList().get(0).getTableId());