diff --git a/README.md b/README.md
index b8dd702..02d0d7e 100644
--- a/README.md
+++ b/README.md
@@ -39,9 +39,9 @@ Toolkit
更新
----
-## [v1.0.8](https://github.com/liuzhihangs/toolkit/releases/tag/v1.0.8) (2020-07-29)
+## [v1.0.9](https://github.com/liuzhihangs/toolkit/releases/tag/v1.0.9) (2020-07-31)
-- 修改使用包装类型
+- 修复 Mapper 为空 不能跳转 Xml 的问题
[查看更多历史更新记录](./doc/ChangeNotes.md)
diff --git a/build.gradle b/build.gradle
index 173c797..14d6226 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ plugins {
}
group 'com.liuzhihang.toolkit'
-version '1.0.8'
+version '1.0.9'
sourceCompatibility = 1.8
@@ -24,7 +24,8 @@ dependencies {
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
- version '2018.3'
+ version '2020.2'
+ plugins = ['java']
pluginName 'Toolkit'
updateSinceUntilBuild false
sameSinceUntilBuild false
diff --git a/doc/ChangeNotes.md b/doc/ChangeNotes.md
index 87f6732..4a009c8 100644
--- a/doc/ChangeNotes.md
+++ b/doc/ChangeNotes.md
@@ -1,5 +1,9 @@
# ChangeNotes
+## [v1.0.8](https://github.com/liuzhihangs/toolkit/releases/tag/v1.0.9) (2020-07-31)
+
+- 修复 Mapper 为空 不能跳转 Xml 的问题
+
## [v1.0.8](https://github.com/liuzhihangs/toolkit/releases/tag/v1.0.8) (2020-07-29)
- 修复复制为 JSON 字段丢失问题
diff --git a/parts/changeNotes.html b/parts/changeNotes.html
index 0e38bf9..f95aee2 100644
--- a/parts/changeNotes.html
+++ b/parts/changeNotes.html
@@ -3,20 +3,18 @@
English introduction
- - 1.0.8
+
- 1.0.9
- - Fix the bug that some fields are missing
- - Modified support 2018.3 and above
+ - Fix the problem that Mapper is empty and cannot jump to Xml
- More records
中文介绍
- - 1.0.8
+
- 1.0.9
- - 修复部分字段丢失的bug
- - 修改支持 2018.3 及以上版本
+ - 修复 Mapper 为空 不能跳转 Xml 的问题
- 更多记录
diff --git a/src/main/java/com/liuzhihang/toolkit/model/Delete.java b/src/main/java/com/liuzhihang/toolkit/model/Delete.java
index 5565d69..99d3d7c 100644
--- a/src/main/java/com/liuzhihang/toolkit/model/Delete.java
+++ b/src/main/java/com/liuzhihang/toolkit/model/Delete.java
@@ -1,10 +1,13 @@
package com.liuzhihang.toolkit.model;
+
/**
- * Created with IntelliJ IDEA.
- * User: mishchenko
- * Date: 26.05.12
- * Time: 15:55
+ * 只需要跳转功能
+ *
+ * @link https://jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/xml_dom_api.html
+ *
+ * @author liuzhihang
+ * @date 2020/7/31 19:20
*/
-public interface Delete extends MapperIdentifiableStatement {
+public interface Delete extends Statement {
}
diff --git a/src/main/java/com/liuzhihang/toolkit/model/Include.java b/src/main/java/com/liuzhihang/toolkit/model/Include.java
deleted file mode 100644
index 35aebd4..0000000
--- a/src/main/java/com/liuzhihang/toolkit/model/Include.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.liuzhihang.toolkit.model;
-
-import com.intellij.util.xml.Attribute;
-import com.intellij.util.xml.DomElement;
-import com.intellij.util.xml.GenericAttributeValue;
-
-/**
- * Created with IntelliJ IDEA.
- * User: mishchenko
- * Date: 26.05.12
- * Time: 15:59
- */
-public interface Include extends DomElement {
-
- @Attribute("refid")
- GenericAttributeValue getRefid();
-
-}
diff --git a/src/main/java/com/liuzhihang/toolkit/model/Insert.java b/src/main/java/com/liuzhihang/toolkit/model/Insert.java
index dc5b2f1..d8b768b 100644
--- a/src/main/java/com/liuzhihang/toolkit/model/Insert.java
+++ b/src/main/java/com/liuzhihang/toolkit/model/Insert.java
@@ -1,10 +1,13 @@
package com.liuzhihang.toolkit.model;
+
/**
- * Created with IntelliJ IDEA.
- * User: mishchenko
- * Date: 26.05.12
- * Time: 15:55
+ * 只需要跳转功能
+ *
+ * @link https://jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/xml_dom_api.html
+ *
+ * @author liuzhihang
+ * @date 2020/7/31 19:20
*/
-public interface Insert extends MapperIdentifiableStatement {
+public interface Insert extends Statement {
}
diff --git a/src/main/java/com/liuzhihang/toolkit/model/Mapper.java b/src/main/java/com/liuzhihang/toolkit/model/Mapper.java
index 21745a7..cfce5f6 100644
--- a/src/main/java/com/liuzhihang/toolkit/model/Mapper.java
+++ b/src/main/java/com/liuzhihang/toolkit/model/Mapper.java
@@ -5,24 +5,31 @@
import java.util.List;
/**
- * Created by IntelliJ IDEA.
- * User: Max
- * Date: 01.01.12
- * Time: 18:37
+ * 只需要跳转功能
+ *
+ * @link https://jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/xml_dom_api.html
+ *
+ * @author liuzhihang
+ * @date 2020/7/31 19:20
*/
public interface Mapper extends DomElement {
+ /**
+ * namespace
+ *
+ * @return
+ */
@Attribute("namespace")
GenericAttributeValue getNamespace();
- @SubTagsList({"sql", "select", "insert", "update", "delete"})
- List getIdentifiableStatements();
-
- @SubTagList("resultMap")
- List getResultMaps();
-
- @SubTagList("sql")
- List getSqls();
+ /**
+ *
+ * 增删改查对应的节点
+ *
+ * @return
+ */
+ @SubTagsList({"select", "insert", "update", "delete"})
+ List getStatements();
@SubTagList("select")
List