From 1e603a0350564c73f1a0171540e7e52f3b0f5e70 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Sun, 11 Jun 2023 16:13:09 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mybatisflex/core/query/BaseQueryWrapper.java | 4 ++-- .../src/main/java/com/mybatisflex/core/util/ObjectUtil.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/BaseQueryWrapper.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/BaseQueryWrapper.java index 694431fe..72739f7b 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/BaseQueryWrapper.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/BaseQueryWrapper.java @@ -275,11 +275,11 @@ public class BaseQueryWrapper> implements CloneSup clone.havingQueryCondition = ObjectUtil.clone(this.havingQueryCondition); clone.orderBys = CollectionUtil.cloneArrayList(this.orderBys); clone.unions = CollectionUtil.cloneArrayList(this.unions); - + // copy List if necessary ... if (this.endFragments != null){ clone.endFragments = CollectionUtil.newArrayList(this.endFragments); } - + // copy Map if necessary ... if (this.context != null){ clone.context = CollectionUtil.newHashMap(this.context); } diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/ObjectUtil.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/ObjectUtil.java index f3380201..dab98e22 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/ObjectUtil.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/ObjectUtil.java @@ -24,6 +24,7 @@ public class ObjectUtil { private ObjectUtil() {} public static Object cloneObject(Object value) { + // ROLE.ROLE_ID.ge(USER.USER_ID) if (value instanceof CloneSupport) { return ((CloneSupport) value).clone(); }