feat(code): BaseQueryWrapper新增clear方法

This commit is contained in:
yuanbaolong 2023-08-01 10:33:40 +08:00
parent a911201ee6
commit 84c7083097

View File

@ -49,6 +49,30 @@ public class BaseQueryWrapper<T extends BaseQueryWrapper<T>> implements CloneSup
// protected boolean ignoreBlankStrings = false; // protected boolean ignoreBlankStrings = false;
/**
* <p>Title: clear. </p>
* <p>Description: Default QueryWrapper values. </p>
* <p>Notice: When adding new attributes, it is necessary to supplement here. </p>
* @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) { protected T addSelectColumn(QueryColumn queryColumn) {
if (selectColumns == null) { if (selectColumns == null) {