Merge pull request #3520 from dataease/pr@dev@fix_app-export

fix(应用): 修复导入应用数据集字段异常更新问题
This commit is contained in:
dataeaseShu 2022-10-28 18:10:16 +08:00 committed by GitHub
commit 6352725ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,6 +182,7 @@ public class PanelAppTemplateService {
for (DatasetTableField datasetTableField : datasetTableFieldsInfo) {
String oldId = datasetTableField.getId();
datasetTableField.setTableId(datasetsRealMap.get(datasetTableField.getTableId()));
datasetTableField.setId(null);
DatasetTableField newTableField = dataSetTableFieldsService.save(datasetTableField);
datasetFieldsRealMap.put(oldId, newTableField.getId());
}