From eb8812460d1c724cc8068a6d56ee4048ef9c49e9 Mon Sep 17 00:00:00 2001 From: richie Date: Tue, 7 Jan 2020 15:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E5=86=99xm?= =?UTF-8?q?l=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.xml | 3 ++- .../java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index b230c14..9c01dc5 100644 --- a/plugin.xml +++ b/plugin.xml @@ -3,12 +3,13 @@ com.fr.plugin.db.es.v10 yes - 1.1 + 1.2 10.0 2019-10-25 fanruan.richie [2020-01-02]完成插件大部分功能,正式发布。
[2019-12-31]初始化插件。
]]>
diff --git a/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java b/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java index 5a2863f..76922cd 100644 --- a/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java +++ b/src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java @@ -148,7 +148,7 @@ public class ElasticsearchTableData extends BaseTableData { } } if ("Script".equals(tmpName)) { if ((tmpVal = reader.getElementValue()) != null) { - this.setQuery(tmpVal); + this.setScript(tmpVal); } } else if (ConfigAttribute.XML_TAG.equals(tmpName)) { configAttribute.set((ConfigAttribute) XmlKit.readXMLable(reader)); @@ -169,7 +169,7 @@ public class ElasticsearchTableData extends BaseTableData { XmlKit.writeXMLable(writer, configAttribute.get(), ConfigAttribute.XML_TAG); } writer.startTAG("Query").textNode(getQuery()).end(); - writer.startTAG("Script").textNode(getQuery()).end(); + writer.startTAG("Script").textNode(getScript()).end(); writer.startTAG("Attr"); writer.attr("endPoint", getEndPoint()); writer.attr("converterType", getConverterType().toInt());