From 15fefbd458df4f004e2480d667ada494302747cf Mon Sep 17 00:00:00 2001 From: yulichang <570810310@qq.com> Date: Mon, 15 Jan 2024 00:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/github/yulichang/kt/KtLambdaWrapper.java | 8 ++++---- .../com/github/yulichang/wrapper/MPJLambdaWrapper.java | 6 ++++-- .../com/github/yulichang/wrapper/UpdateJoinWrapper.java | 1 + .../github/yulichang/wrapper/resultmap/MybatisLabel.java | 1 - 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/mybatis-plus-join-core/src/main/java/com/github/yulichang/kt/KtLambdaWrapper.java b/mybatis-plus-join-core/src/main/java/com/github/yulichang/kt/KtLambdaWrapper.java index 51f4eb6..000b94c 100644 --- a/mybatis-plus-join-core/src/main/java/com/github/yulichang/kt/KtLambdaWrapper.java +++ b/mybatis-plus-join-core/src/main/java/com/github/yulichang/kt/KtLambdaWrapper.java @@ -224,14 +224,14 @@ public class KtLambdaWrapper extends KtAbstractLambdaWrapper - * 推荐使用 union(Class clazz, Consumer> consumer) + * 推荐使用 union(Class<U> clazz, Consumer<MPJLambdaWrapper<U>> consumer) * 例: wrapper.union(UserDO.class, union -> union.selectAll(UserDO.class)) * * @see #union(Class, Consumer) * @deprecated union 不支持子查询 */ @Deprecated - @SuppressWarnings("DeprecatedIsStillUsed") + @SuppressWarnings("ALL") public final KtLambdaWrapper union(KtLambdaWrapper... wrappers) { StringBuilder sb = new StringBuilder(); for (KtLambdaWrapper wrapper : wrappers) { @@ -272,14 +272,14 @@ public class KtLambdaWrapper extends KtAbstractLambdaWrapper - * 推荐使用 unionAll(Class clazz, Consumer> consumer) + * 推荐使用 unionAll(Class<U> clazz, Consumer<MPJLambdaWrapper<U>> consumer) * 例: wrapper.unionAll(UserDO.class, union -> union.selectAll(UserDO.class)) * * @see #unionAll(Class, Consumer) * @deprecated union 不支持子查询 */ @Deprecated - @SuppressWarnings("DeprecatedIsStillUsed") + @SuppressWarnings("ALL") public final KtLambdaWrapper unionAll(KtLambdaWrapper... wrappers) { StringBuilder sb = new StringBuilder(); for (KtLambdaWrapper wrapper : wrappers) { diff --git a/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/MPJLambdaWrapper.java b/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/MPJLambdaWrapper.java index 4a5bd01..7b6116c 100644 --- a/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/MPJLambdaWrapper.java +++ b/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/MPJLambdaWrapper.java @@ -227,7 +227,8 @@ public class MPJLambdaWrapper extends JoinAbstractLambdaWrapper - * 推荐使用 union(Class clazz, Consumer> consumer) + * 推荐使用 union(Class<U> clazz, ConsumerConsumer<MPJLambdaWrapper<U>> consumer) + *

* 例: wrapper.union(UserDO.class, union -> union.selectAll(UserDO.class)) * * @see #union(Class, Consumer) @@ -275,7 +276,8 @@ public class MPJLambdaWrapper extends JoinAbstractLambdaWrapper - * 推荐使用 unionAll(Class clazz, Consumer> consumer) + * 推荐使用 unionAll(Class<U> clazz, Consumer<MPJLambdaWrapper<U>> consumer) + *

* 例: wrapper.unionAll(UserDO.class, union -> union.selectAll(UserDO.class)) * * @see #unionAll(Class, Consumer) diff --git a/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/UpdateJoinWrapper.java b/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/UpdateJoinWrapper.java index 405385d..36f221d 100644 --- a/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/UpdateJoinWrapper.java +++ b/mybatis-plus-join-core/src/main/java/com/github/yulichang/wrapper/UpdateJoinWrapper.java @@ -129,6 +129,7 @@ public class UpdateJoinWrapper extends JoinAbstractLambdaWrapper implements Label { /** * 自动构建 */ - @SuppressWarnings("unchecked") public Builder(String index, String property, Class entityClass, Class javaType) { this.mybatisLabel = new MybatisLabel<>(); mybatisLabel.property = property;