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();