fix: 【数据导出中心】修复【数据集】数据集导出失败

This commit is contained in:
taojinlong
2026-02-25 15:59:46 +08:00
committed by taojinlong
parent fab8e2e81a
commit 5902d1031b

View File

@@ -89,6 +89,8 @@ public class ExportCenterDownLoadManage {
private CoreChartViewMapper coreChartViewMapper;
@Resource
private PermissionManage permissionManage;
@Resource
private DatasetGroupManage datasetGroupManage;
@Autowired
private WsService wsService;
@Autowired(required = false)
@@ -230,8 +232,8 @@ public class ExportCenterDownLoadManage {
datasetTableFieldDTO.setFieldShortName(ele.getDataeaseName());
return datasetTableFieldDTO;
}).collect(Collectors.toList());
Map<String, Object> sqlMap = datasetSQLManage.getUnionSQLForEdit(dto, null);
DatasetGroupInfoDTO datasetGroupInfoDTO = datasetGroupManage.getDatasetGroupInfoDTO(request.getId(), null);
Map<String, Object> sqlMap = datasetSQLManage.getUnionSQLForEdit(datasetGroupInfoDTO, null);
String sql = (String) sqlMap.get("sql");
if (ObjectUtils.isEmpty(allFields)) {
DEException.throwException(Translator.get("i18n_no_fields"));
@@ -669,8 +671,8 @@ public class ExportCenterDownLoadManage {
datasetTableFieldDTO.setFieldShortName(ele.getDataeaseName());
return datasetTableFieldDTO;
}).collect(Collectors.toList());
Map<String, Object> sqlMap = datasetSQLManage.getUnionSQLForEdit(dto, null);
DatasetGroupInfoDTO datasetGroupInfoDTO = datasetGroupManage.getDatasetGroupInfoDTO(request.getId(), null);
Map<String, Object> sqlMap = datasetSQLManage.getUnionSQLForEdit(datasetGroupInfoDTO, null);
String sql = (String) sqlMap.get("sql");
if (ObjectUtils.isEmpty(allFields)) {
DEException.throwException(Translator.get("i18n_no_fields"));