From 743f2ee41260f5cd751db5ce90240dfa0a60e559 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Thu, 10 Aug 2023 20:10:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20or(consumer,=20condition)=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/mybatisflex/core/query/QueryWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java index 661a16ed..2f40a6fc 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java @@ -291,7 +291,7 @@ public class QueryWrapper extends BaseQueryWrapper { } public QueryWrapper or(Consumer consumer, boolean condition) { - if (condition) { + if (!condition) { return this; } QueryWrapper newWrapper = new QueryWrapper();