mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
refactor: 优化应用模板数据集字段匹配方式 (#17155)
This commit is contained in:
@@ -272,12 +272,12 @@ public class DataVisualizationServer implements DataVisualizationApi {
|
||||
List<AppCoreDatasetTableFieldVO> sourceDatasetTableFieldListSub = sourceDatasetTableFieldMap.get(sourceTable.getId());
|
||||
|
||||
QueryWrapper<CoreDatasetTableField> wrapperField = new QueryWrapper<>();
|
||||
wrapper.eq("dataset_table_id", systemTable.getId());
|
||||
wrapperField.eq("dataset_table_id", systemTable.getId());
|
||||
List<CoreDatasetTableField> systemDatasetTableFieldSub = coreDatasetTableFieldMapper.selectList(wrapperField);
|
||||
|
||||
for (AppCoreDatasetTableFieldVO sourceTableField : sourceDatasetTableFieldListSub) {
|
||||
for (CoreDatasetTableField systemTableField : systemDatasetTableFieldSub) {
|
||||
if (sourceTable.getTableName().equals(systemTable.getTableName())) {
|
||||
if (sourceTableField.getOriginName().equals(systemTableField.getOriginName())) {
|
||||
// 获取dsTableIdMap datasourceIdMap
|
||||
dsTableFieldsIdMap.put(sourceTableField.getId(), systemTableField.getId());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user