From 9009e40337cb22bf1a35133b57d551a8a441658b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Mon, 20 Nov 2023 19:23:06 +0800 Subject: [PATCH] build: v1.7.4 release (^.^)YYa!! --- .gitee/ISSUE_TEMPLATE/bug.yml | 2 +- .gitee/ISSUE_TEMPLATE/question.yml | 2 +- changes.md | 14 ++++++++++++++ docs/zh/base/querywrapper.md | 23 ----------------------- docs/zh/changes.md | 14 ++++++++++++++ docs/zh/intro/getting-started.md | 2 +- docs/zh/intro/gradle.md | 16 ++++++++-------- docs/zh/intro/maven.md | 14 +++++++------- docs/zh/others/apt.md | 2 +- docs/zh/others/codegen.md | 2 +- pom.xml | 4 ++-- 11 files changed, 50 insertions(+), 45 deletions(-) diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml index 0c4848b3..ec5c3654 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.7.3,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.4,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea attributes: diff --git a/.gitee/ISSUE_TEMPLATE/question.yml b/.gitee/ISSUE_TEMPLATE/question.yml index 4e2a87c5..11df3172 100644 --- a/.gitee/ISSUE_TEMPLATE/question.yml +++ b/.gitee/ISSUE_TEMPLATE/question.yml @@ -13,7 +13,7 @@ body: attributes: label: 这个问题是否已经存在: options: - - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.3,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.4,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea id: question-description diff --git a/changes.md b/changes.md index 61c71b0a..9022d3eb 100644 --- a/changes.md +++ b/changes.md @@ -3,6 +3,20 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 +## v1.7.4 20231120: +新增:QueryMethods 添加 bracket 在极特殊场景下用于构建括号的支持,感谢 @Suomm +新增:QueryWrapper 添加取相反数的 SQL 构建,感谢 @Suomm +优化:重命名 RawFragment 为 RawQueryCondition,保持 Raw 的风格统一,感谢 @Suomm +优化:solon-plugin 升级 solon 升为 2.5.3,感谢 @noear_admin +修复:ArithmeticQueryColumn 算术运算无法拼接条件的问题,感谢 @uanmengyuan +修复:读写分离自定义分离策略不生效的问题 #I8FP0K +修复:使用 @Transactional 嵌套时,默认事务传播机制与预期不符 #202 +修复:case when 别名丢失的问题,感谢 @x-core +文档:添加关于 QueryWrapper 克隆测试的相关文档,感谢 @Suomm +文档:添加关于 QueryWrapper 取相反数的 SQL 构建文档,感谢 @Suomm +文档:优化 QueryWrapper 的相关文档,感谢 @Suomm + + ## v1.7.3 20231027: - 新增:添加 Delete SQL 多表关联查询删除的支持 diff --git a/docs/zh/base/querywrapper.md b/docs/zh/base/querywrapper.md index 0114fe32..ab9298c0 100644 --- a/docs/zh/base/querywrapper.md +++ b/docs/zh/base/querywrapper.md @@ -682,29 +682,6 @@ AND (sex = ? OR sex = ? ) OR (age IN (?,?,?) AND user_name LIKE ? ) ``` -## where 括号 - - - -```java 6 -QueryWrapper queryWrapper = QueryWrapper.create() - .select() - .from(ACCOUNT) - .where(ACCOUNT.IS_DELETE.eq(0)) - .and(ACCOUNT.ID.ge("1").and( - bracket(ACCOUNT.AGE.ge(18).or(ACCOUNT.USER_NAME.ge("zs"))) - )) - .or(ACCOUNT.BIRTHDAY.le(new Date())); -``` - -其生成的 SQL 为: - -```sql -SELECT * FROM `tb_account` -WHERE `is_delete` = 0 -AND (`id` >= '1' AND (`age` >= 18 OR `user_name` >= 'zs')) -OR `birthday` <= '2023-10-28 22:13:36' -``` ## 自定义字符串列名 diff --git a/docs/zh/changes.md b/docs/zh/changes.md index 61c71b0a..9022d3eb 100644 --- a/docs/zh/changes.md +++ b/docs/zh/changes.md @@ -3,6 +3,20 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 +## v1.7.4 20231120: +新增:QueryMethods 添加 bracket 在极特殊场景下用于构建括号的支持,感谢 @Suomm +新增:QueryWrapper 添加取相反数的 SQL 构建,感谢 @Suomm +优化:重命名 RawFragment 为 RawQueryCondition,保持 Raw 的风格统一,感谢 @Suomm +优化:solon-plugin 升级 solon 升为 2.5.3,感谢 @noear_admin +修复:ArithmeticQueryColumn 算术运算无法拼接条件的问题,感谢 @uanmengyuan +修复:读写分离自定义分离策略不生效的问题 #I8FP0K +修复:使用 @Transactional 嵌套时,默认事务传播机制与预期不符 #202 +修复:case when 别名丢失的问题,感谢 @x-core +文档:添加关于 QueryWrapper 克隆测试的相关文档,感谢 @Suomm +文档:添加关于 QueryWrapper 取相反数的 SQL 构建文档,感谢 @Suomm +文档:优化 QueryWrapper 的相关文档,感谢 @Suomm + + ## v1.7.3 20231027: - 新增:添加 Delete SQL 多表关联查询删除的支持 diff --git a/docs/zh/intro/getting-started.md b/docs/zh/intro/getting-started.md index 39e40f77..8b2e76ae 100644 --- a/docs/zh/intro/getting-started.md +++ b/docs/zh/intro/getting-started.md @@ -62,7 +62,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.3 + 1.7.4 com.mysql diff --git a/docs/zh/intro/gradle.md b/docs/zh/intro/gradle.md index 2d5cab2e..0a08e042 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.7.3") + implementation("com.mybatis-flex:mybatis-flex-core:1.7.4") } ``` @@ -18,7 +18,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-core:1.7.3' + implementation 'com.mybatis-flex:mybatis-flex-core:1.7.4' } ``` @@ -28,7 +28,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring:1.7.3") + implementation("com.mybatis-flex:mybatis-flex-spring:1.7.4") } ``` @@ -36,7 +36,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring:1.7.3' + implementation 'com.mybatis-flex:mybatis-flex-spring:1.7.4' } ``` @@ -46,7 +46,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.3") + implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.4") } ``` @@ -54,7 +54,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.3' + implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.4' } ``` @@ -70,7 +70,7 @@ dependencies { ```kotlin dependencies { - annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.7.3") + annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.7.4") } ``` @@ -78,6 +78,6 @@ dependencies { ```groovy dependencies { - annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.3' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.4' } ``` diff --git a/docs/zh/intro/maven.md b/docs/zh/intro/maven.md index d99c5e90..5e3df090 100644 --- a/docs/zh/intro/maven.md +++ b/docs/zh/intro/maven.md @@ -12,12 +12,12 @@ com.mybatis-flex mybatis-flex-core - 1.7.3 + 1.7.4 com.mybatis-flex mybatis-flex-processor - 1.7.3 + 1.7.4 provided ``` @@ -28,12 +28,12 @@ com.mybatis-flex mybatis-flex-spring - 1.7.3 + 1.7.4 com.mybatis-flex mybatis-flex-processor - 1.7.3 + 1.7.4 provided `````` @@ -44,12 +44,12 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.3 + 1.7.4 com.mybatis-flex mybatis-flex-processor - 1.7.3 + 1.7.4 provided ``` @@ -72,7 +72,7 @@ com.mybatis-flex mybatis-flex-processor - 1.7.3 + 1.7.4 diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md index 4e61a08f..3bc6695b 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.7.3' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.4' } ``` diff --git a/docs/zh/others/codegen.md b/docs/zh/others/codegen.md index 8fa3c1ec..8241d501 100644 --- a/docs/zh/others/codegen.md +++ b/docs/zh/others/codegen.md @@ -10,7 +10,7 @@ com.mybatis-flex mybatis-flex-codegen - 1.7.3 + 1.7.4 ``` diff --git a/pom.xml b/pom.xml index 26b80c77..b7b3c655 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.mybatis-flex parent pom - 1.7.3 + 1.7.4 mybatis-flex https://mybatis-flex.com @@ -55,7 +55,7 @@ 8 8 - 1.7.3 + 1.7.4 3.5.13 2.1.0