build: v1.7.4 release (^.^)YYa!!

This commit is contained in:
开源海哥 2023-11-20 19:23:06 +08:00
parent 68ca05849b
commit 9009e40337
11 changed files with 50 additions and 45 deletions

View File

@ -7,7 +7,7 @@ body:
attributes: attributes:
label: 这个 Bug 是否已经存在: label: 这个 Bug 是否已经存在:
options: 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 required: true
- type: textarea - type: textarea
attributes: attributes:

View File

@ -13,7 +13,7 @@ body:
attributes: attributes:
label: 这个问题是否已经存在: label: 这个问题是否已经存在:
options: 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 required: true
- type: textarea - type: textarea
id: question-description id: question-description

View File

@ -3,6 +3,20 @@
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 查看 [全部代码贡献者](/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: ## v1.7.3 20231027:
- 新增:添加 Delete SQL 多表关联查询删除的支持 - 新增:添加 Delete SQL 多表关联查询删除的支持

View File

@ -682,29 +682,6 @@ AND (sex = ? OR sex = ? )
OR (age IN (?,?,?) AND user_name LIKE ? ) 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'
```
## 自定义字符串列名 ## 自定义字符串列名

View File

@ -3,6 +3,20 @@
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 查看 [全部代码贡献者](/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: ## v1.7.3 20231027:
- 新增:添加 Delete SQL 多表关联查询删除的支持 - 新增:添加 Delete SQL 多表关联查询删除的支持

View File

@ -62,7 +62,7 @@ VALUES (1, '张三', 18, '2020-01-11'),
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot-starter</artifactId> <artifactId>mybatis-flex-spring-boot-starter</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.mysql</groupId> <groupId>com.mysql</groupId>

View File

@ -10,7 +10,7 @@
```kotlin ```kotlin
dependencies { 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 ```groovy
dependencies { 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 ```kotlin
dependencies { 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 ```groovy
dependencies { 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 ```kotlin
dependencies { 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 ```groovy
dependencies { 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 ```kotlin
dependencies { 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 ```groovy
dependencies { dependencies {
annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.3' annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.4'
} }
``` ```

View File

@ -12,12 +12,12 @@
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-core</artifactId> <artifactId>mybatis-flex-core</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId> <artifactId>mybatis-flex-processor</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
``` ```
@ -28,12 +28,12 @@
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring</artifactId> <artifactId>mybatis-flex-spring</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId> <artifactId>mybatis-flex-processor</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
`````` ``````
@ -44,12 +44,12 @@
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot-starter</artifactId> <artifactId>mybatis-flex-spring-boot-starter</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId> <artifactId>mybatis-flex-processor</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
``` ```
@ -72,7 +72,7 @@
<path> <path>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId> <artifactId>mybatis-flex-processor</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
</path> </path>
</annotationProcessorPaths> </annotationProcessorPaths>
</configuration> </configuration>

View File

@ -220,7 +220,7 @@ pom.xml 添加 `annotationProcessorPaths` 配置,
``` ```
dependencies { dependencies {
... ...
annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.3' annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.4'
} }
``` ```

View File

@ -10,7 +10,7 @@
<dependency> <dependency>
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-codegen</artifactId> <artifactId>mybatis-flex-codegen</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
</dependency> </dependency>
``` ```

View File

@ -7,7 +7,7 @@
<groupId>com.mybatis-flex</groupId> <groupId>com.mybatis-flex</groupId>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.7.3</version> <version>1.7.4</version>
<name>mybatis-flex</name> <name>mybatis-flex</name>
<url>https://mybatis-flex.com</url> <url>https://mybatis-flex.com</url>
@ -55,7 +55,7 @@
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<mybatis-flex.version>1.7.3</mybatis-flex.version> <mybatis-flex.version>1.7.4</mybatis-flex.version>
<mybatis.version>3.5.13</mybatis.version> <mybatis.version>3.5.13</mybatis.version>
<mybatis-spring.version>2.1.0</mybatis-spring.version> <mybatis-spring.version>2.1.0</mybatis-spring.version>