Merge pull request #13152 from dataease/pr@dev-v2@refactor_ds_error

refactor(数据集): 优化数据集异常提示
This commit is contained in:
Junjun 2024-11-06 10:43:54 +08:00 committed by GitHub
commit 2fb7ff9d45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,6 +262,9 @@ public class DatasetGroupManage {
List<CoreDatasetTable> coreDatasetTables = coreDatasetTableMapper.selectList(wrapper);
Set<Long> ids = new LinkedHashSet();
coreDatasetTables.forEach(ele -> ids.add(ele.getDatasourceId()));
if (CollectionUtils.isEmpty(ids)) {
DEException.throwException("数据集因异常导致无法使用,请重新创建");
}
QueryWrapper<CoreDatasource> datasourceQueryWrapper = new QueryWrapper<>();
datasourceQueryWrapper.in("id", ids);