diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/WrapperUtil.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/WrapperUtil.java index 365ad24a..3882ba9b 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/WrapperUtil.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/WrapperUtil.java @@ -50,7 +50,12 @@ class WrapperUtil { } } // not Brackets - else { + else if (condition instanceof OperatorSelectCondition) { + if (list == null) { + list = new ArrayList<>(); + } + list.add(((OperatorSelectCondition) condition).getQueryWrapper()); + } else { Object value = condition.getValue(); if (value instanceof QueryWrapper) { if (list == null) {