From a1c2d75041d4c33970c0435ed2dde7eaaa674ba4 Mon Sep 17 00:00:00 2001 From: wanggaoquan Date: Thu, 21 Sep 2023 16:37:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6Oper?= =?UTF-8?q?atorQueryCondition\OperatorSelectCondition=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=80=BC=E8=A6=81=E6=A3=80=E6=9F=A5effective?= =?UTF-8?q?(=E5=90=A6=E5=88=99sql=E4=B8=AD=E7=9A=84=3F=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E4=B8=8E=E5=8F=82=E6=95=B0=E4=B8=8D=E5=AF=B9=E5=BA=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mybatisflex/core/query/OperatorQueryCondition.java | 2 +- .../com/mybatisflex/core/query/OperatorSelectCondition.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorQueryCondition.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorQueryCondition.java index 0974ffe0..258d75ff 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorQueryCondition.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorQueryCondition.java @@ -68,7 +68,7 @@ public class OperatorQueryCondition extends QueryCondition { @Override public Object getValue() { - return WrapperUtil.getValues(childCondition); + return checkEffective() ? WrapperUtil.getValues(childCondition) : null; } @Override diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorSelectCondition.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorSelectCondition.java index 6d9594d5..2de9e3ae 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorSelectCondition.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/OperatorSelectCondition.java @@ -71,7 +71,7 @@ public class OperatorSelectCondition extends QueryCondition { @Override public Object getValue() { - return queryWrapper.getAllValueArray(); + return checkEffective() ? queryWrapper.getAllValueArray() : null; } @Override