forked from github/dataease
fix: 关联数据集
This commit is contained in:
parent
94b31d6c25
commit
2ae68c2c8f
@ -1509,7 +1509,7 @@ public class DataSetTableService {
|
||||
|
||||
public void saveTableField(DatasetTable datasetTable) throws Exception {
|
||||
Datasource ds = datasourceMapper.selectByPrimaryKey(datasetTable.getDataSourceId());
|
||||
if (ObjectUtils.isEmpty(ds)) {
|
||||
if (ObjectUtils.isEmpty(ds) && !datasetTable.getType().equalsIgnoreCase("union")) {
|
||||
throw new RuntimeException(Translator.get("i18n_datasource_delete"));
|
||||
}
|
||||
DataSetTableRequest dataSetTableRequest = new DataSetTableRequest();
|
||||
|
Loading…
Reference in New Issue
Block a user