mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 21:42:32 +08:00
Merge pull request #13152 from dataease/pr@dev-v2@refactor_ds_error
refactor(数据集): 优化数据集异常提示
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user