mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
build: v1.7.4 release (^.^)YYa!!
This commit is contained in:
parent
68ca05849b
commit
9009e40337
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
14
changes.md
14
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 多表关联查询删除的支持
|
||||
|
||||
@ -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'
|
||||
```
|
||||
|
||||
## 自定义字符串列名
|
||||
|
||||
|
||||
@ -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 多表关联查询删除的支持
|
||||
|
||||
@ -62,7 +62,7 @@ VALUES (1, '张三', 18, '2020-01-11'),
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-spring-boot-starter</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
|
||||
@ -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'
|
||||
}
|
||||
```
|
||||
|
||||
@ -12,12 +12,12 @@
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-core</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-processor</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
```
|
||||
@ -28,12 +28,12 @@
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-spring</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-processor</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
``````
|
||||
@ -44,12 +44,12 @@
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-spring-boot-starter</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-processor</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
```
|
||||
@ -72,7 +72,7 @@
|
||||
<path>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-processor</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
|
||||
@ -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'
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<dependency>
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>mybatis-flex-codegen</artifactId>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
||||
4
pom.xml
4
pom.xml
@ -7,7 +7,7 @@
|
||||
<groupId>com.mybatis-flex</groupId>
|
||||
<artifactId>parent</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.7.3</version>
|
||||
<version>1.7.4</version>
|
||||
|
||||
<name>mybatis-flex</name>
|
||||
<url>https://mybatis-flex.com</url>
|
||||
@ -55,7 +55,7 @@
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<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-spring.version>2.1.0</mybatis-spring.version>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user