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(); }