diff --git a/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java b/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java index fb510cae5..21b127c56 100644 --- a/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java +++ b/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java @@ -117,10 +117,10 @@ public void doGetEsTplFields(Context context) throws Exception { DataxProcessor dataxProcessor = DataxProcessor.load(this, dataxName); Optional f = dataxProcessor.getTabAlias().findFirst(); - if(f.isPresent()){ + if (f.isPresent()) { writerStructFields(context, f.get(), typeTransfer); + return; } - // for (Map.Entry e : dataxProcessor.getTabAlias().entrySet()) { // writerStructFields(context, e.getValue(), typeTransfer); // return;