From 8796cb56a0eb67ba60357c5277f3dc6161985bd9 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 10 Apr 2024 09:45:49 +0800 Subject: [PATCH] build: v1.8.7 release (^.^)YYa!! --- .gitee/ISSUE_TEMPLATE/bug.yml | 2 +- changes.md | 14 ++++++++++++++ docs/zh/changes.md | 14 ++++++++++++++ docs/zh/intro/getting-started.md | 4 ++-- docs/zh/intro/gradle.md | 16 ++++++++-------- docs/zh/intro/maven.md | 18 +++++++++--------- docs/zh/others/apt.md | 2 +- mybatis-flex-annotation/pom.xml | 2 +- mybatis-flex-codegen/pom.xml | 4 ++-- mybatis-flex-core/pom.xml | 4 ++-- .../java/com/mybatisflex/core/FlexConsts.java | 2 +- mybatis-flex-dependencies/pom.xml | 4 ++-- mybatis-flex-processor/pom.xml | 4 ++-- mybatis-flex-solon-plugin/pom.xml | 2 +- mybatis-flex-spring-boot-starter/pom.xml | 6 +++--- mybatis-flex-spring-boot3-starter/pom.xml | 4 ++-- mybatis-flex-spring/pom.xml | 4 ++-- .../mybatis-flex-native-test/pom.xml | 2 +- .../mybatis-flex-seata-test/pom.xml | 2 +- .../mybatis-flex-spring-boot-test/pom.xml | 2 +- .../mybatis-flex-spring-cloud-test/pom.xml | 2 +- .../mybatis-flex-spring-test/pom.xml | 2 +- mybatis-flex-test/pom.xml | 2 +- pom.xml | 4 ++-- 24 files changed, 75 insertions(+), 47 deletions(-) diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml index 9a5e16eb..e31ab2d7 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.6,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.7,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea attributes: diff --git a/changes.md b/changes.md index 9bc64624..6605d039 100644 --- a/changes.md +++ b/changes.md @@ -2,6 +2,20 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 + +## v1.8.7 20240410 +- 新增:feat: 添加 `@TableRef` 注解标记 VO 类和 Entity 绑定,方便关联查询直接转换为 VO,感谢 @Suomm +- 新增:Db + Row 支持 QueryWrapper 的原生 SQL 构建,感谢 @Suomm +- 优化:XML 分页 #{qwSql} 参数补充逻辑删除等参数,感谢 @Suomm +- 优化:`insertBatch(entities, size)` 和 `insertBatch(entities)` 对空 list 的处理不一致问题 #I9EGWA +- 修复: 修正使用 MyBatis 原生工具方法 PropertyNamer#methodToProperty 可能造成无法正确获取属性的问题,感谢 @Suomm +- 修复:修复当 APT 配置多个 ignoreSuffix 时,可能导致生成的类名不正确的问题 #I9ED9N +- 修复:QueryWrapper 通过 Map 构造查询条件,并传入 SqlOperators 时,Like 不能正确拼接 % 的问题 #I9F8HO +- 修复:代码生成器的 EnjoyTemplate 在并发下可能出现异常的问题 +- 测试:添加 Db + Row 原生 SQL 子查询插入与更新测试,感谢 @Suomm + + + ## v1.8.6 20240402 - 修复:在 QueryWrapper 中使用 is_null 时出现 sql 异常的问题,感谢 @Suomm diff --git a/docs/zh/changes.md b/docs/zh/changes.md index 9bc64624..6605d039 100644 --- a/docs/zh/changes.md +++ b/docs/zh/changes.md @@ -2,6 +2,20 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 + +## v1.8.7 20240410 +- 新增:feat: 添加 `@TableRef` 注解标记 VO 类和 Entity 绑定,方便关联查询直接转换为 VO,感谢 @Suomm +- 新增:Db + Row 支持 QueryWrapper 的原生 SQL 构建,感谢 @Suomm +- 优化:XML 分页 #{qwSql} 参数补充逻辑删除等参数,感谢 @Suomm +- 优化:`insertBatch(entities, size)` 和 `insertBatch(entities)` 对空 list 的处理不一致问题 #I9EGWA +- 修复: 修正使用 MyBatis 原生工具方法 PropertyNamer#methodToProperty 可能造成无法正确获取属性的问题,感谢 @Suomm +- 修复:修复当 APT 配置多个 ignoreSuffix 时,可能导致生成的类名不正确的问题 #I9ED9N +- 修复:QueryWrapper 通过 Map 构造查询条件,并传入 SqlOperators 时,Like 不能正确拼接 % 的问题 #I9F8HO +- 修复:代码生成器的 EnjoyTemplate 在并发下可能出现异常的问题 +- 测试:添加 Db + Row 原生 SQL 子查询插入与更新测试,感谢 @Suomm + + + ## v1.8.6 20240402 - 修复:在 QueryWrapper 中使用 is_null 时出现 sql 异常的问题,感谢 @Suomm diff --git a/docs/zh/intro/getting-started.md b/docs/zh/intro/getting-started.md index f9173992..30e72c28 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.6 + 1.8.7 com.mysql @@ -81,7 +81,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot3-starter - 1.8.6 + 1.8.7 com.mysql diff --git a/docs/zh/intro/gradle.md b/docs/zh/intro/gradle.md index db2dcd6e..62ae7283 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.6") + implementation("com.mybatis-flex:mybatis-flex-core:1.8.7") } ``` @@ -18,7 +18,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-core:1.8.6' + implementation 'com.mybatis-flex:mybatis-flex-core:1.8.7' } ``` @@ -28,7 +28,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring:1.8.6") + implementation("com.mybatis-flex:mybatis-flex-spring:1.8.7") } ``` @@ -36,7 +36,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.6' + implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.7' } ``` @@ -46,7 +46,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.6") + implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.7") } ``` @@ -54,7 +54,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.6' + implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.7' } ``` @@ -70,7 +70,7 @@ dependencies { ```kotlin dependencies { - annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.6") + annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.7") } ``` @@ -78,6 +78,6 @@ dependencies { ```groovy dependencies { - annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.6' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.7' } ``` diff --git a/docs/zh/intro/maven.md b/docs/zh/intro/maven.md index d934dd45..f0cffb24 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.6 + 1.8.7 com.mybatis-flex mybatis-flex-processor - 1.8.6 + 1.8.7 provided ``` @@ -28,12 +28,12 @@ com.mybatis-flex mybatis-flex-spring - 1.8.6 + 1.8.7 com.mybatis-flex mybatis-flex-processor - 1.8.6 + 1.8.7 provided `````` @@ -44,12 +44,12 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.8.6 + 1.8.7 com.mybatis-flex mybatis-flex-processor - 1.8.6 + 1.8.7 provided ``` @@ -60,12 +60,12 @@ com.mybatis-flex mybatis-flex-spring-boot3-starter - 1.8.6 + 1.8.7 com.mybatis-flex mybatis-flex-processor - 1.8.6 + 1.8.7 provided ``` @@ -88,7 +88,7 @@ com.mybatis-flex mybatis-flex-processor - 1.8.6 + 1.8.7 diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md index cd00f0cb..b24b17ec 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.6' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.7' } ``` diff --git a/mybatis-flex-annotation/pom.xml b/mybatis-flex-annotation/pom.xml index e20f325f..1741ee73 100644 --- a/mybatis-flex-annotation/pom.xml +++ b/mybatis-flex-annotation/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.8.6 + 1.8.7 4.0.0 diff --git a/mybatis-flex-codegen/pom.xml b/mybatis-flex-codegen/pom.xml index 4bd1e86e..e71aed1c 100644 --- a/mybatis-flex-codegen/pom.xml +++ b/mybatis-flex-codegen/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.8.6 + 1.8.7 4.0.0 @@ -23,7 +23,7 @@ com.mybatis-flex mybatis-flex-core - 1.8.6 + 1.8.7 com.mybatis-flex diff --git a/mybatis-flex-core/pom.xml b/mybatis-flex-core/pom.xml index d4bcbf4f..2d03c1f7 100644 --- a/mybatis-flex-core/pom.xml +++ b/mybatis-flex-core/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.8.6 + 1.8.7 4.0.0 @@ -101,7 +101,7 @@ com.mybatis-flex mybatis-flex-annotation - 1.8.6 + 1.8.7 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 e8577753..8d6168b3 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.6"; + public static final String VERSION = "1.8.7"; public static final String SQL = "$$sql"; diff --git a/mybatis-flex-dependencies/pom.xml b/mybatis-flex-dependencies/pom.xml index 36a0a5bd..d9eb9eb2 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.6 + 1.8.7 pom @@ -48,7 +48,7 @@ - 1.8.6 + 1.8.7 diff --git a/mybatis-flex-processor/pom.xml b/mybatis-flex-processor/pom.xml index 03fd0d46..c0092012 100644 --- a/mybatis-flex-processor/pom.xml +++ b/mybatis-flex-processor/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.8.6 + 1.8.7 4.0.0 @@ -22,7 +22,7 @@ com.mybatis-flex mybatis-flex-annotation - 1.8.6 + 1.8.7 diff --git a/mybatis-flex-solon-plugin/pom.xml b/mybatis-flex-solon-plugin/pom.xml index 27c3aa9c..7ac3879c 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.6 + 1.8.7 4.0.0 diff --git a/mybatis-flex-spring-boot-starter/pom.xml b/mybatis-flex-spring-boot-starter/pom.xml index f826564e..26d64bf0 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.6 + 1.8.7 4.0.0 @@ -23,7 +23,7 @@ com.mybatis-flex mybatis-flex-spring - 1.8.6 + 1.8.7 @@ -104,7 +104,7 @@ com.mybatis-flex mybatis-flex-core - 1.8.6 + 1.8.7 diff --git a/mybatis-flex-spring-boot3-starter/pom.xml b/mybatis-flex-spring-boot3-starter/pom.xml index 60ad230d..b71b832b 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.6 + 1.8.7 mybatis-flex-spring-boot3-starter @@ -19,7 +19,7 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.8.6 + 1.8.7 org.mybatis diff --git a/mybatis-flex-spring/pom.xml b/mybatis-flex-spring/pom.xml index 14218246..104b9b5a 100644 --- a/mybatis-flex-spring/pom.xml +++ b/mybatis-flex-spring/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.8.6 + 1.8.7 4.0.0 @@ -22,7 +22,7 @@ com.mybatis-flex mybatis-flex-core - 1.8.6 + 1.8.7 diff --git a/mybatis-flex-test/mybatis-flex-native-test/pom.xml b/mybatis-flex-test/mybatis-flex-native-test/pom.xml index b6a5fefe..b3599780 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.6 + 1.8.7 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 bfd605e9..d20abfbf 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.6 + 1.8.7 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 e7f407c1..0576fc54 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.6 + 1.8.7 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 887620c5..60f3088a 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.6 + 1.8.7 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 96b2337d..a8239763 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.6 + 1.8.7 4.0.0 diff --git a/mybatis-flex-test/pom.xml b/mybatis-flex-test/pom.xml index d8a7de28..128d6cb8 100644 --- a/mybatis-flex-test/pom.xml +++ b/mybatis-flex-test/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.8.6 + 1.8.7 4.0.0 diff --git a/pom.xml b/pom.xml index e64865e0..a64f54f7 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.mybatis-flex parent pom - 1.8.6 + 1.8.7 mybatis-flex https://mybatis-flex.com @@ -55,7 +55,7 @@ 8 8 - 1.8.6 + 1.8.7 3.5.15 2.1.2