diff --git a/pom.xml b/pom.xml
index b554766..446b885 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.codingapi
simple-mybatis
- 1.0.0
+ 1.2.1
simple-mybatis
https://github.com/codingapi/simple-mybatis
simple mybatis project for Spring Boot
@@ -17,17 +17,19 @@
1.8
1.8
3.0.1
- 3.6.0
+ 3.8.1
1.6.3
1.2.7
1.18.0
- 5.1.10
- 3.4.6
+ 5.3.1
+ 3.5.6
1.0.0.Final
- 1.9.3
+ 1.9.4
3.10
- 28.1-jre
+ 32.0.0-jre
+
+ 5.6.2
@@ -64,6 +66,19 @@
commons-lang3
+
+ org.junit.jupiter
+ junit-jupiter-api
+ ${junit.jupiter.version}
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ ${junit.jupiter.version}
+ test
+
+
@@ -114,14 +129,19 @@
org.apache.maven.plugins
maven-compiler-plugin
+ ${maven-compiler-plugin.version}
${maven.compile.source}
${maven.compile.target}
${project.build.sourceEncoding}
- -Xlint:deprecation
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.22.2
+
@@ -146,6 +166,7 @@
org.jacoco
jacoco-maven-plugin
+ 0.8.5
@@ -166,6 +187,7 @@
org.openclover
clover-maven-plugin
+ 4.4.1
true
true
diff --git a/readme.md b/readme.md
index c954310..bb97ed7 100644
--- a/readme.md
+++ b/readme.md
@@ -1,4 +1,4 @@
-[](https://travis-ci.org/codingapi/simple-mybatis) [](https://codecov.io/gh/codingapi/simple-mybatis)
+[](https://travis-ci.org/codingapi/simple-mybatis) [](https://maven-badges.herokuapp.com/maven-central/com.codingapi/simple-mybatis) [](https://codecov.io/gh/codingapi/simple-mybatis)
# simple-mybatis
## 前言
@@ -16,7 +16,7 @@
com.codingapi
simple-mybatis
- 1.0.0
+ ${last.version}
```
@@ -58,7 +58,7 @@ public class Demo implements ITree{ //ITree根据业务需要可不实现
int save(T t);
//批量保存
- int saveAll(@Param("list") List list);
+ int saveAll(List list);
//修改数据,修改数据只会替换非null对象
int update(T t);
@@ -67,29 +67,29 @@ public class Demo implements ITree{ //ITree根据业务需要可不实现
int delete(T t);
//批量删除,删除条件为Id
- int deleteAll(@Param("list") List list);
+ int deleteAll(List list);
//通过Id直接删除
- int deleteById(@Param("id") Object id);
+ int deleteById(Object id);
//通过Id批量删除
- int deleteAllById(@Param("list") List id);
+ int deleteAllById(List id);
```
* `QueryMapper`提供常用的查询操作
```java
//通过Id查询
- T getById(@Param("id") Object id);
+ T getById(Object id);
//查询属于数据
List findAll();
//通过Query查询数据
- List query(@Param("query") Query query);
+ List query(Query query);
//通过Query查询试图数据,返回List Map对象
- List