From 84c708309767cce954f18c465a1991cd0bb4d0fc Mon Sep 17 00:00:00 2001 From: yuanbaolong Date: Tue, 1 Aug 2023 10:33:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(code):=20BaseQueryWrapper=E6=96=B0?= =?UTF-8?q?=E5=A2=9Eclear=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/query/BaseQueryWrapper.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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) {