Compare commits

...

16 Commits

Author SHA1 Message Date
yulichang
1b72884fcb fix https://github.com/yulichang/mybatis-plus-join/issues/283 2025-06-26 23:23:34 +08:00
dependabot[bot]
9463cb6437 chore(deps): bump org.springframework.boot:spring-boot-dependencies
Bumps [org.springframework.boot:spring-boot-dependencies](https://github.com/spring-projects/spring-boot) from 3.5.0 to 3.5.3.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.5.0...v3.5.3)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-dependencies
  dependency-version: 3.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-24 22:03:06 +08:00
dependabot[bot]
7614007346 chore(deps): bump org.noear:solon from 3.3.2 to 3.3.3
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.3.2...v3.3.3)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-24 22:02:26 +08:00
dependabot[bot]
5c3cd62a5f chore(deps): bump org.noear:solon from 3.3.1 to 3.3.2
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/commits)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-12 08:22:49 +08:00
dependabot[bot]
a8b4f77753 chore(deps): bump org.springframework.boot:spring-boot-dependencies
Bumps [org.springframework.boot:spring-boot-dependencies](https://github.com/spring-projects/spring-boot) from 3.4.5 to 3.5.0.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.5...v3.5.0)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-dependencies
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-07 01:11:49 +08:00
dependabot[bot]
0ffac304b9 chore(deps): bump org.noear:solon from 3.3.0 to 3.3.1
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-07 01:05:35 +08:00
yulichang
399609c9fb
Update maven.yml 2025-05-28 14:29:20 +08:00
yulichang
28392edd61 升级依赖 2025-05-21 19:05:45 +08:00
yulichang
8e8eb6afdd fix https://gitee.com/best_handsome/mybatis-plus-join/issues/IC8VI5 2025-05-21 18:17:43 +08:00
dependabot[bot]
0356b4c201 chore(deps): bump org.noear:solon from 3.2.1 to 3.3.0
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.2.1...v3.3.0)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-15 18:06:02 +08:00
dependabot[bot]
6d847adce5 chore(deps): bump org.springframework.boot:spring-boot-dependencies
Bumps [org.springframework.boot:spring-boot-dependencies](https://github.com/spring-projects/spring-boot) from 3.4.4 to 3.4.5.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.4...v3.4.5)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-dependencies
  dependency-version: 3.4.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 23:33:48 +08:00
dependabot[bot]
65e466c0e7 chore(deps): bump org.noear:solon from 3.2.0 to 3.2.1
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 17:34:44 +08:00
dependabot[bot]
91e0528da5 chore(deps): bump org.noear:solon from 3.1.2 to 3.2.0
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.1.2...v3.2.0)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 15:13:13 +08:00
dependabot[bot]
a1c309949a chore(deps): bump org.noear:solon from 3.1.1 to 3.1.2
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.1.1...v3.1.2)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-version: 3.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 11:54:59 +08:00
dependabot[bot]
683d640d81 chore(deps): bump org.noear:solon from 3.1.0 to 3.1.1
Bumps [org.noear:solon](https://github.com/noear/solon) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/noear/solon/releases)
- [Commits](https://github.com/noear/solon/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: org.noear:solon
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 06:16:47 +08:00
dependabot[bot]
7b03ca05d4 chore(deps): bump ognl:ognl from 3.4.6 to 3.4.7
Bumps [ognl:ognl](https://github.com/orphan-oss/ognl) from 3.4.6 to 3.4.7.
- [Release notes](https://github.com/orphan-oss/ognl/releases)
- [Commits](https://github.com/orphan-oss/ognl/commits)

---
updated-dependencies:
- dependency-name: ognl:ognl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 06:16:37 +08:00
8 changed files with 23 additions and 24 deletions

View File

@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven

View File

@ -12,9 +12,6 @@
<a href="https://central.sonatype.com/artifact/com.github.yulichang/mybatis-plus-join-boot-starter">
<img alt="Maven central" src="https://img.shields.io/maven-central/v/com.github.yulichang/mybatis-plus-join-boot-starter.svg?style=flat-square">
</a>
<a href="https://oss.sonatype.org/content/repositories/snapshots/com/github/yulichang/mybatis-plus-join-boot-starter/">
<img alt="Sonatype Nexus (Snapshots)" src="https://img.shields.io/nexus/s/https/oss.sonatype.org/com.github.yulichang/mybatis-plus-join-boot-starter.svg">
</a>
<a href="https://www.apache.org/licenses/LICENSE-2.0">
<img alt="code style" src="https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square">
</a>
@ -33,7 +30,6 @@
</p>
<p align="center">
QQ群:680016987 或者
<a href="https://gitee.com/best_handsome/mybatis-plus-join/issues/I65N2M" target="_blank">添加作者微信备注MPJ加入微信群</a>
<br/>
<img width="200px" height="200px" src="https://foruda.gitee.com/images/1714756135330585984/bcc86eb0_2020985.png" alt="添加作者微信备注MPJ加入微信群"/>
@ -50,12 +46,12 @@ QQ群:680016987 或者
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-boot-starter</artifactId>
<version>1.5.3</version>
<version>1.5.4</version>
</dependency>
```
- Gradle
```
implementation 'com.github.yulichang:mybatis-plus-join-boot-starter:1.5.3'
implementation 'com.github.yulichang:mybatis-plus-join-boot-starter:1.5.4'
```
或者clone代码到本地执行 `mvn install`, 再引入以上依赖
<br>

View File

@ -12,9 +12,6 @@
<a href="https://central.sonatype.com/artifact/com.github.yulichang/mybatis-plus-join-boot-starter">
<img alt="Maven central" src="https://img.shields.io/maven-central/v/com.github.yulichang/mybatis-plus-join-boot-starter.svg?style=flat-square">
</a>
<a href="https://oss.sonatype.org/content/repositories/snapshots/com/github/yulichang/mybatis-plus-join-boot-starter/">
<img alt="Sonatype Nexus (Snapshots)" src="https://img.shields.io/nexus/s/https/oss.sonatype.org/com.github.yulichang/mybatis-plus-join-boot-starter.svg">
</a>
<a href="https://www.apache.org/licenses/LICENSE-2.0">
<img alt="code style" src="https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square">
</a>
@ -33,7 +30,6 @@
</p>
<p align="center">
QQ群:680016987 或者
<a href="https://gitee.com/best_handsome/mybatis-plus-join/issues/I65N2M" target="_blank">添加作者微信备注MPJ加入微信群</a>
<br/>
<img width="200px" height="200px" src="https://github.com/yulichang/mybatis-plus-join/assets/33247410/6a2aedfa-c67d-4691-9441-204f28b6c73d" alt="添加作者微信备注MPJ加入微信群"/>
@ -50,12 +46,12 @@ QQ群:680016987 或者
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-boot-starter</artifactId>
<version>1.5.3</version>
<version>1.5.4</version>
</dependency>
```
- Gradle
```
implementation 'com.github.yulichang:mybatis-plus-join-boot-starter:1.5.3'
implementation 'com.github.yulichang:mybatis-plus-join-boot-starter:1.5.4'
```
或者clone代码到本地执行 `mvn install`, 再引入以上依赖
<br>

View File

@ -17,6 +17,7 @@ import java.net.URLEncoder;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import static java.util.stream.Collectors.joining;
@ -127,8 +128,10 @@ public interface MPJBaseMethod extends Constants {
if (fieldStrategy == FieldStrategy.NEVER) {
return null;
}
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo) || fieldStrategy == FieldStrategy.ALWAYS
|| fieldStrategy.name().equalsIgnoreCase("IGNORED")) {
FieldStrategy strategy = Optional.ofNullable(fieldStrategy).orElse(FieldStrategy.DEFAULT);
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo)
|| strategy.name().equalsIgnoreCase("ALWAYS")
|| strategy.name().equalsIgnoreCase("IGNORED")) {
return sqlScript;
}
if (fieldStrategy == FieldStrategy.NOT_EMPTY && tableFieldInfo.isCharSequence()) {

View File

@ -8,6 +8,8 @@ import com.github.yulichang.adapter.AdapterHelper;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;
import java.util.Optional;
/**
* copy {@link com.baomidou.mybatisplus.core.injector.methods.Update}
*
@ -65,8 +67,10 @@ public class UpdateJoin extends MPJAbstractMethod {
if (fieldStrategy == FieldStrategy.NEVER) {
return null;
}
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo) || fieldStrategy == FieldStrategy.ALWAYS ||
fieldStrategy.name().equalsIgnoreCase("IGNORED")) {
FieldStrategy strategy = Optional.ofNullable(fieldStrategy).orElse(FieldStrategy.DEFAULT);
if (AdapterHelper.getAdapter().mpjIsPrimitive(tableFieldInfo)
|| strategy.name().equalsIgnoreCase("ALWAYS")
|| strategy.name().equalsIgnoreCase("IGNORED")) {
return sqlScript;
}
if (fieldStrategy == FieldStrategy.NOT_EMPTY && tableFieldInfo.isCharSequence()) {

View File

@ -18,7 +18,7 @@
<dependency>
<groupId>ognl</groupId>
<artifactId>ognl</artifactId>
<version>3.4.6</version>
<version>3.4.7</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>

View File

@ -18,7 +18,7 @@
<dependency>
<groupId>org.noear</groupId>
<artifactId>solon</artifactId>
<version>3.1.0</version>
<version>3.3.3</version>
<scope>import</scope>
<type>pom</type>
</dependency>
@ -44,7 +44,7 @@
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-solon-plugin</artifactId>
<version>3.5.10.1</version>
<version>3.5.12</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -44,8 +44,8 @@
</modules>
<properties>
<revision>1.5.3</revision>
<mybatis.plus.version>3.5.11</mybatis.plus.version>
<revision>1.5.4</revision>
<mybatis.plus.version>3.5.12</mybatis.plus.version>
<jdkVersion>17</jdkVersion>
<jdkVersion.test>17</jdkVersion.test>
@ -62,7 +62,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>3.4.4</version>
<version>3.5.3</version>
<scope>import</scope>
<type>pom</type>
</dependency>