Browse Source

修复一个写xml的bug

master
richie 5 years ago
parent
commit
eb8812460d
  1. 3
      plugin.xml
  2. 4
      src/main/java/com/fr/plugin/db/es/fun/ElasticsearchTableData.java

3
plugin.xml

@ -3,12 +3,13 @@
<id>com.fr.plugin.db.es.v10</id>
<name><![CDATA[Elasticsearch数据集]]></name>
<active>yes</active>
<version>1.1</version>
<version>1.2</version>
<env-version>10.0</env-version>
<jartime>2019-10-25</jartime>
<vendor>fanruan.richie</vendor>
<description><![CDATA[Elasticsearch数据查询。]]></description>
<change-notes><![CDATA[
[2020-01-07]修复一个写xml的错误。<br/>
[2020-01-02]完成插件大部分功能,正式发布。<br/>
[2019-12-31]初始化插件。<br/>
]]></change-notes>

4
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());

Loading…
Cancel
Save