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 1198fa65..7454bb1f 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 @@ -49,6 +49,30 @@ public class BaseQueryWrapper> implements CloneSup // protected boolean ignoreBlankStrings = false; + /** + *

Title: clear.

+ *

Description: Default QueryWrapper values.

+ *

Notice: When adding new attributes, it is necessary to supplement here.

+ * @author dragon + */ + public void clear() { + this.with = null; + this.queryTables = null; + this.dataSource = null; + this.hint = null; + this.selectColumns = null; + this.joins = null; + this.joinTables = null; + this.whereQueryCondition = null; + this.groupByColumns = null; + this.havingQueryCondition = null; + this.orderBys = null; + this.unions = null; + this.limitOffset = null; + this.limitRows = null; + this.endFragments = null; + this.context = null; + } protected T addSelectColumn(QueryColumn queryColumn) { if (selectColumns == null) {