mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: or(consumer, condition) 方法逻辑错误。
This commit is contained in:
parent
91c09e5d38
commit
743f2ee412
@ -291,7 +291,7 @@ public class QueryWrapper extends BaseQueryWrapper<QueryWrapper> {
|
||||
}
|
||||
|
||||
public QueryWrapper or(Consumer<QueryWrapper> consumer, boolean condition) {
|
||||
if (condition) {
|
||||
if (!condition) {
|
||||
return this;
|
||||
}
|
||||
QueryWrapper newWrapper = new QueryWrapper();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user