fix: QueryCondition 深度克隆指向错误。

This commit is contained in:
Suomm 2023-06-10 23:51:46 +08:00
parent 509b23bd2a
commit 9507abb95f

View File

@ -306,8 +306,8 @@ public class QueryCondition implements CloneSupport<QueryCondition> {
clone.column = ObjectUtil.clone(this.column);
clone.value = ObjectUtil.cloneObject(this.value);
clone.before = clone.next = null;
for (QueryCondition x = next; x != null; x = x.next) {
clone.next = x.clone();
if (this.next != null) {
clone.next = this.next.clone();
clone.next.before = clone;
}
return clone;