Merge pull request #1297 from dataease/pr@dev@fix_field

fix(数据集): 编辑数据集可能会出现重复字段
This commit is contained in:
XiaJunjie2020 2021-11-29 10:13:49 +08:00 committed by GitHub
commit c2a5081359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -980,6 +980,7 @@ public class DataSetTableService {
datasetTableField.setTableId(datasetTable.getId()); datasetTableField.setTableId(datasetTable.getId());
datasetTableField.setColumnIndex(i); datasetTableField.setColumnIndex(i);
} }
dataSetTableFieldsService.deleteByTableId(datasetTable.getId());
dataSetTableFieldsService.batchEdit(fieldList); dataSetTableFieldsService.batchEdit(fieldList);
// custom 创建doris视图 // custom 创建doris视图
if (datasetTable.getMode() == 1) { if (datasetTable.getMode() == 1) {