mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
feat(code): BaseQueryWrapper新增clear方法
This commit is contained in:
parent
a911201ee6
commit
84c7083097
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user