forked from github/dataease
fix: 自定义数据集报错提示
This commit is contained in:
parent
05cbd335ce
commit
9f3ef8e1f9
@ -1101,10 +1101,10 @@ public class DataSetTableService {
|
|||||||
Map<String, String[]> customInfo = new TreeMap<>();
|
Map<String, String[]> customInfo = new TreeMap<>();
|
||||||
for (DataTableInfoCustomUnion ele : dataTableInfoDTO.getList()) {
|
for (DataTableInfoCustomUnion ele : dataTableInfoDTO.getList()) {
|
||||||
DatasetTable datasetTable = datasetTableMapper.selectByPrimaryKey(ele.getTableId());
|
DatasetTable datasetTable = datasetTableMapper.selectByPrimaryKey(ele.getTableId());
|
||||||
String table = new Gson().fromJson(datasetTable.getInfo(), DataTableInfoDTO.class).getTable();
|
|
||||||
if (ObjectUtils.isEmpty(datasetTable)) {
|
if (ObjectUtils.isEmpty(datasetTable)) {
|
||||||
throw new RuntimeException(Translator.get("i18n_custom_ds_delete"));
|
throw new RuntimeException(Translator.get("i18n_custom_ds_delete"));
|
||||||
}
|
}
|
||||||
|
String table = new Gson().fromJson(datasetTable.getInfo(), DataTableInfoDTO.class).getTable();
|
||||||
List<DatasetTableField> fields = dataSetTableFieldsService.getListByIdsEach(ele.getCheckedFields());
|
List<DatasetTableField> fields = dataSetTableFieldsService.getListByIdsEach(ele.getCheckedFields());
|
||||||
if (CollectionUtils.isEmpty(fields)) {
|
if (CollectionUtils.isEmpty(fields)) {
|
||||||
throw new RuntimeException(Translator.get("i18n_cst_ds_tb_or_field_deleted"));
|
throw new RuntimeException(Translator.get("i18n_cst_ds_tb_or_field_deleted"));
|
||||||
|
Loading…
Reference in New Issue
Block a user