forked from github/dataease
refactor(数据集): 优化数据集异常提示
This commit is contained in:
parent
ac74647c53
commit
d821f38ed2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user