diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml
index 5ee7c21d..b240f12d 100644
--- a/.gitee/ISSUE_TEMPLATE/bug.yml
+++ b/.gitee/ISSUE_TEMPLATE/bug.yml
@@ -7,7 +7,7 @@ body:
attributes:
label: 这个 Bug 是否已经存在:
options:
- - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.2,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues)
+ - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.3,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues)
required: true
- type: textarea
attributes:
diff --git a/changes.md b/changes.md
index 9ac9deb6..0f89aeb5 100644
--- a/changes.md
+++ b/changes.md
@@ -3,6 +3,35 @@
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。
+## v1.8.3 20240324:
+- 新增:QueryWrapper 添加 hasCondition 方法,感谢 @Suomm
+- 新增:添加 SqlOperator 忽略属性,用于在某些场景下忽略 entity 字段,感谢 @Suomm
+- 新增:添加 selectCursorByQueryAs 重载方法,感谢 @Suomm
+- 新增:添加 MapUtil 替代 MyBatis 官方的 MapUtil
+- 新增:DynamicTableProcessor 的 process 方法添加 OperateType 参数,感谢 @wtj
+- 新增:CPI 添加获取条件中参数的方法,感谢 @Suomm
+- 新增:添加 RawValue 获取参数的方法,感谢 @Suomm
+- 新增:多租户功能可以根据表名返回多租户条件,感谢 @Suomm
+- 新增:支持使用 UpdateWrapper 自定义插入值,感谢 @Suomm
+- 新增:代码生成器策略配置 StrategyConfig 添加支持通配符功能,感谢 @gongdonghui
+- 新增:`@Table` 和 `@Column` 注解添加 comment 配置的支持
+- 新增:代码生成器添加自动把 comment 添加到注解的相关功能支持
+- 修复:修复 MultiDataSourceAutoConfiguration 下的 druid 路径错误的问题,感谢 @Suomm
+- 修复:解决 p6spy 下多数据源获取 DbType 失败的问题,感谢 @ocoooo
+- 修复:生成代码时, 某些情况下不会添加 `@EqualsAndHashCode(callSuper = true)` 的问题
+- 修复:Relation 查询使用 Lambda 表达式无法指定类名问题,感谢 @Suomm
+- 修复:使用默认数据源获取 dsName 为 null 的错误,感谢 @Suomm
+- 优化:逻辑删除时,保证逻辑删除前面的条件被括号包裹,感谢 @swqxdba
+- 优化:重构 使用 QueryTable 类替代 TableDef 类,感谢 @Suomm
+- 优化:重命名 JdbcTypeMapping 的 mapper 为 typeMapper
+- 优化:优化 Spring 下事务管理的自动配置,防止在某些场景下被其他管理器接管的问题
+- 优化:优化 dependencies 模块的 pom.xml 方别独立发布
+- 文档:优化 `@Table` 注解文档的错别字问题,感谢 @zhaoshuli1984
+- 文档:优化事务相关文档的错别字问题,感谢 @lifejwang11
+- 文档:添加关于 JdbcTypeMapping 的 typeMapper 使用文档
+
+
+
## v1.8.2 20240305:
- 新增:Maven 编译添加 Javadoc 插件生成 Javadoc 的支持,感谢 @Suomm
- 优化:优化对 SpringBoot3 下的 Druid 数据源适配,感谢 @Suomm #I94P5P
diff --git a/docs/zh/changes.md b/docs/zh/changes.md
index 9ac9deb6..0f89aeb5 100644
--- a/docs/zh/changes.md
+++ b/docs/zh/changes.md
@@ -3,6 +3,35 @@
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。
+## v1.8.3 20240324:
+- 新增:QueryWrapper 添加 hasCondition 方法,感谢 @Suomm
+- 新增:添加 SqlOperator 忽略属性,用于在某些场景下忽略 entity 字段,感谢 @Suomm
+- 新增:添加 selectCursorByQueryAs 重载方法,感谢 @Suomm
+- 新增:添加 MapUtil 替代 MyBatis 官方的 MapUtil
+- 新增:DynamicTableProcessor 的 process 方法添加 OperateType 参数,感谢 @wtj
+- 新增:CPI 添加获取条件中参数的方法,感谢 @Suomm
+- 新增:添加 RawValue 获取参数的方法,感谢 @Suomm
+- 新增:多租户功能可以根据表名返回多租户条件,感谢 @Suomm
+- 新增:支持使用 UpdateWrapper 自定义插入值,感谢 @Suomm
+- 新增:代码生成器策略配置 StrategyConfig 添加支持通配符功能,感谢 @gongdonghui
+- 新增:`@Table` 和 `@Column` 注解添加 comment 配置的支持
+- 新增:代码生成器添加自动把 comment 添加到注解的相关功能支持
+- 修复:修复 MultiDataSourceAutoConfiguration 下的 druid 路径错误的问题,感谢 @Suomm
+- 修复:解决 p6spy 下多数据源获取 DbType 失败的问题,感谢 @ocoooo
+- 修复:生成代码时, 某些情况下不会添加 `@EqualsAndHashCode(callSuper = true)` 的问题
+- 修复:Relation 查询使用 Lambda 表达式无法指定类名问题,感谢 @Suomm
+- 修复:使用默认数据源获取 dsName 为 null 的错误,感谢 @Suomm
+- 优化:逻辑删除时,保证逻辑删除前面的条件被括号包裹,感谢 @swqxdba
+- 优化:重构 使用 QueryTable 类替代 TableDef 类,感谢 @Suomm
+- 优化:重命名 JdbcTypeMapping 的 mapper 为 typeMapper
+- 优化:优化 Spring 下事务管理的自动配置,防止在某些场景下被其他管理器接管的问题
+- 优化:优化 dependencies 模块的 pom.xml 方别独立发布
+- 文档:优化 `@Table` 注解文档的错别字问题,感谢 @zhaoshuli1984
+- 文档:优化事务相关文档的错别字问题,感谢 @lifejwang11
+- 文档:添加关于 JdbcTypeMapping 的 typeMapper 使用文档
+
+
+
## v1.8.2 20240305:
- 新增:Maven 编译添加 Javadoc 插件生成 Javadoc 的支持,感谢 @Suomm
- 优化:优化对 SpringBoot3 下的 Druid 数据源适配,感谢 @Suomm #I94P5P
diff --git a/docs/zh/intro/getting-started.md b/docs/zh/intro/getting-started.md
index 82c5e334..1fe18479 100644
--- a/docs/zh/intro/getting-started.md
+++ b/docs/zh/intro/getting-started.md
@@ -53,7 +53,7 @@ VALUES (1, '张三', 18, '2020-01-11'),
com.mybatis-flex
mybatis-flex-spring-boot-starter
- 1.8.2
+ 1.8.3
com.mysql
@@ -81,7 +81,7 @@ VALUES (1, '张三', 18, '2020-01-11'),
com.mybatis-flex
mybatis-flex-spring-boot3-starter
- 1.8.2
+ 1.8.3
com.mysql
diff --git a/docs/zh/intro/gradle.md b/docs/zh/intro/gradle.md
index 4d4a32ec..79746913 100644
--- a/docs/zh/intro/gradle.md
+++ b/docs/zh/intro/gradle.md
@@ -10,7 +10,7 @@
```kotlin
dependencies {
- implementation("com.mybatis-flex:mybatis-flex-core:1.8.2")
+ implementation("com.mybatis-flex:mybatis-flex-core:1.8.3")
}
```
@@ -18,7 +18,7 @@ dependencies {
```groovy
dependencies {
- implementation 'com.mybatis-flex:mybatis-flex-core:1.8.2'
+ implementation 'com.mybatis-flex:mybatis-flex-core:1.8.3'
}
```
@@ -28,7 +28,7 @@ dependencies {
```kotlin
dependencies {
- implementation("com.mybatis-flex:mybatis-flex-spring:1.8.2")
+ implementation("com.mybatis-flex:mybatis-flex-spring:1.8.3")
}
```
@@ -36,7 +36,7 @@ dependencies {
```groovy
dependencies {
- implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.2'
+ implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.3'
}
```
@@ -46,7 +46,7 @@ dependencies {
```kotlin
dependencies {
- implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.2")
+ implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.3")
}
```
@@ -54,7 +54,7 @@ dependencies {
```groovy
dependencies {
- implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.2'
+ implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.3'
}
```
@@ -70,7 +70,7 @@ dependencies {
```kotlin
dependencies {
- annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.2")
+ annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.3")
}
```
@@ -78,6 +78,6 @@ dependencies {
```groovy
dependencies {
- annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.2'
+ annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.3'
}
```
diff --git a/docs/zh/intro/maven.md b/docs/zh/intro/maven.md
index a2213d76..e47f2c66 100644
--- a/docs/zh/intro/maven.md
+++ b/docs/zh/intro/maven.md
@@ -12,12 +12,12 @@
com.mybatis-flex
mybatis-flex-core
- 1.8.2
+ 1.8.3
com.mybatis-flex
mybatis-flex-processor
- 1.8.2
+ 1.8.3
provided
```
@@ -28,12 +28,12 @@
com.mybatis-flex
mybatis-flex-spring
- 1.8.2
+ 1.8.3
com.mybatis-flex
mybatis-flex-processor
- 1.8.2
+ 1.8.3
provided
``````
@@ -44,12 +44,12 @@
com.mybatis-flex
mybatis-flex-spring-boot-starter
- 1.8.2
+ 1.8.3
com.mybatis-flex
mybatis-flex-processor
- 1.8.2
+ 1.8.3
provided
```
@@ -60,12 +60,12 @@
com.mybatis-flex
mybatis-flex-spring-boot3-starter
- 1.8.2
+ 1.8.3
com.mybatis-flex
mybatis-flex-processor
- 1.8.2
+ 1.8.3
provided
```
@@ -88,7 +88,7 @@
com.mybatis-flex
mybatis-flex-processor
- 1.8.2
+ 1.8.3
diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md
index b8d215a4..37bca5af 100644
--- a/docs/zh/others/apt.md
+++ b/docs/zh/others/apt.md
@@ -220,7 +220,7 @@ pom.xml 添加 `annotationProcessorPaths` 配置,
```
dependencies {
...
- annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.2'
+ annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.3'
}
```
diff --git a/docs/zh/others/codegen.md b/docs/zh/others/codegen.md
index a9e1978f..056bb4ae 100644
--- a/docs/zh/others/codegen.md
+++ b/docs/zh/others/codegen.md
@@ -15,7 +15,7 @@
com.mybatis-flex
mybatis-flex-codegen
- 1.8.2
+ 1.8.3
```
diff --git a/mybatis-flex-annotation/pom.xml b/mybatis-flex-annotation/pom.xml
index 47dce985..4cf975a2 100644
--- a/mybatis-flex-annotation/pom.xml
+++ b/mybatis-flex-annotation/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-codegen/pom.xml b/mybatis-flex-codegen/pom.xml
index 04ce6f97..b117f103 100644
--- a/mybatis-flex-codegen/pom.xml
+++ b/mybatis-flex-codegen/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
@@ -23,7 +23,7 @@
com.mybatis-flex
mybatis-flex-core
- 1.8.2
+ 1.8.3
com.mybatis-flex
diff --git a/mybatis-flex-core/pom.xml b/mybatis-flex-core/pom.xml
index 755b988e..cfb8e7c3 100644
--- a/mybatis-flex-core/pom.xml
+++ b/mybatis-flex-core/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
@@ -101,7 +101,7 @@
com.mybatis-flex
mybatis-flex-annotation
- 1.8.2
+ 1.8.3
compile
diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java
index 6860d8aa..a275957a 100644
--- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java
+++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java
@@ -27,7 +27,7 @@ public class FlexConsts {
}
public static final String NAME = "MyBatis-Flex";
- public static final String VERSION = "1.8.2";
+ public static final String VERSION = "1.8.3";
public static final String SQL = "$$sql";
diff --git a/mybatis-flex-dependencies/pom.xml b/mybatis-flex-dependencies/pom.xml
index d4261fc2..0a04e50d 100644
--- a/mybatis-flex-dependencies/pom.xml
+++ b/mybatis-flex-dependencies/pom.xml
@@ -6,7 +6,7 @@
com.mybatis-flex
mybatis-flex-dependencies
- 1.8.2
+ 1.8.3
pom
@@ -48,7 +48,7 @@
- 1.8.2
+ 1.8.3
diff --git a/mybatis-flex-processor/pom.xml b/mybatis-flex-processor/pom.xml
index 4ae5a788..d9ecd7cd 100644
--- a/mybatis-flex-processor/pom.xml
+++ b/mybatis-flex-processor/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
@@ -22,7 +22,7 @@
com.mybatis-flex
mybatis-flex-annotation
- 1.8.2
+ 1.8.3
diff --git a/mybatis-flex-solon-plugin/pom.xml b/mybatis-flex-solon-plugin/pom.xml
index a1cd6461..6ab4ccc6 100644
--- a/mybatis-flex-solon-plugin/pom.xml
+++ b/mybatis-flex-solon-plugin/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-spring-boot-starter/pom.xml b/mybatis-flex-spring-boot-starter/pom.xml
index b319a542..204c833b 100644
--- a/mybatis-flex-spring-boot-starter/pom.xml
+++ b/mybatis-flex-spring-boot-starter/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
@@ -23,7 +23,7 @@
com.mybatis-flex
mybatis-flex-spring
- 1.8.2
+ 1.8.3
@@ -104,7 +104,7 @@
com.mybatis-flex
mybatis-flex-core
- 1.8.2
+ 1.8.3
diff --git a/mybatis-flex-spring-boot3-starter/pom.xml b/mybatis-flex-spring-boot3-starter/pom.xml
index 65b6f992..77759b3a 100644
--- a/mybatis-flex-spring-boot3-starter/pom.xml
+++ b/mybatis-flex-spring-boot3-starter/pom.xml
@@ -6,7 +6,7 @@
com.mybatis-flex
parent
- 1.8.2
+ 1.8.3
mybatis-flex-spring-boot3-starter
@@ -19,7 +19,7 @@
com.mybatis-flex
mybatis-flex-spring-boot-starter
- 1.8.2
+ 1.8.3
org.mybatis
diff --git a/mybatis-flex-spring/pom.xml b/mybatis-flex-spring/pom.xml
index af76171f..96ba8fb4 100644
--- a/mybatis-flex-spring/pom.xml
+++ b/mybatis-flex-spring/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
@@ -22,7 +22,7 @@
com.mybatis-flex
mybatis-flex-core
- 1.8.2
+ 1.8.3
diff --git a/mybatis-flex-test/mybatis-flex-native-test/pom.xml b/mybatis-flex-test/mybatis-flex-native-test/pom.xml
index 8004cfae..f438b3bf 100644
--- a/mybatis-flex-test/mybatis-flex-native-test/pom.xml
+++ b/mybatis-flex-test/mybatis-flex-native-test/pom.xml
@@ -5,7 +5,7 @@
mybatis-flex-test
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-test/mybatis-flex-seata-test/pom.xml b/mybatis-flex-test/mybatis-flex-seata-test/pom.xml
index 299133b0..2a3cfb72 100644
--- a/mybatis-flex-test/mybatis-flex-seata-test/pom.xml
+++ b/mybatis-flex-test/mybatis-flex-seata-test/pom.xml
@@ -4,7 +4,7 @@
mybatis-flex-test
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml b/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml
index edbb9960..7f7cc39a 100644
--- a/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml
+++ b/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml
@@ -5,7 +5,7 @@
mybatis-flex-test
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml b/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml
index ab9be95a..4a4a7980 100644
--- a/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml
+++ b/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml
@@ -5,7 +5,7 @@
mybatis-flex-test
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-test/mybatis-flex-spring-test/pom.xml b/mybatis-flex-test/mybatis-flex-spring-test/pom.xml
index 899db0da..fcb575a3 100644
--- a/mybatis-flex-test/mybatis-flex-spring-test/pom.xml
+++ b/mybatis-flex-test/mybatis-flex-spring-test/pom.xml
@@ -5,7 +5,7 @@
mybatis-flex-test
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/mybatis-flex-test/pom.xml b/mybatis-flex-test/pom.xml
index 6a029af8..da17a2af 100644
--- a/mybatis-flex-test/pom.xml
+++ b/mybatis-flex-test/pom.xml
@@ -5,7 +5,7 @@
parent
com.mybatis-flex
- 1.8.2
+ 1.8.3
4.0.0
diff --git a/pom.xml b/pom.xml
index 47256990..b8fc64cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
com.mybatis-flex
parent
pom
- 1.8.2
+ 1.8.3
mybatis-flex
https://mybatis-flex.com
@@ -55,7 +55,7 @@
8
8
- 1.8.2
+ 1.8.3
3.5.15
2.1.2