mirror of
https://github.com/dataease/dataease.git
synced 2026-05-17 06:50:45 +08:00
fix(数据源): API 数据源支持选择及组合多层级中的字段
This commit is contained in:
@@ -263,7 +263,7 @@ public class ApiProvider extends Provider {
|
||||
o.put("extField", 0);
|
||||
o.put("checked", false);
|
||||
for (DatasetTableFieldDTO fieldDTO : apiDefinition.getFields()) {
|
||||
if (fieldDTO.getJsonPath().equals(o.getString("jsonPath"))) {
|
||||
if (StringUtils.isNotEmpty(o.getString("jsonPath")) && StringUtils.isNotEmpty(fieldDTO.getJsonPath()) && fieldDTO.getJsonPath().equals(o.getString("jsonPath"))) {
|
||||
o.put("checked", true);
|
||||
o.put("deExtractType", fieldDTO.getDeExtractType());
|
||||
o.put("name", fieldDTO.getName());
|
||||
|
||||
Reference in New Issue
Block a user