diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/Conditional.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/Conditional.java index a210e994..2c85c924 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/Conditional.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/Conditional.java @@ -387,6 +387,21 @@ public interface Conditional { */ R notIn(QueryWrapper queryWrapper, BooleanSupplier isEffective); + /** + * {@code BETWEEN values[0] AND values[1]} + * + * @param values 范围值 + */ + R between(Object[] values); + + /** + * {@code BETWEEN values[0] AND values[1]} + * + * @param values 值 + * @param isEffective 是否有效 + */ + R between(Object[] values, boolean isEffective); + /** * {@code BETWEEN start AND end} * @@ -422,6 +437,21 @@ public interface Conditional { */ R between(S start, E end, BiPredicate isEffective); + /** + * {@code NOT BETWEEN values[0] AND values[1]} + * + * @param values 范围值 + */ + R notBetween(Object[] values); + + /** + * {@code NOT BETWEEN values[0] AND values[1]} + * + * @param values 值 + * @param isEffective 是否有效 + */ + R notBetween(Object[] values, boolean isEffective); + /** * {@code NOT BETWEEN start AND end} * diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryColumn.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryColumn.java index d5d22804..b9d78036 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryColumn.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryColumn.java @@ -578,6 +578,24 @@ public class QueryColumn implements CloneSupport, Conditional, Conditional