From 087561f9364f9c6a3b7b4450ea01425241f1b6f9 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Sun, 13 Aug 2023 16:43:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E4=B8=AA=E7=94=9F=E6=95=88=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mybatisflex/core/query/QueryCondition.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryCondition.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryCondition.java index 0e993a8a..a049e911 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryCondition.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryCondition.java @@ -240,6 +240,13 @@ public class QueryCondition implements CloneSupport { return prev.checkEffective() ? prev : prev.getPrevEffectiveCondition(); } + protected QueryCondition getNextEffectiveCondition() { + if (next == null) { + return null; + } + return next.checkEffective() ? next : next.getNextEffectiveCondition(); + } + protected void appendQuestionMark(StringBuilder sqlBuilder) { //noinspection StatementWithEmptyBody