public class QueryWrap<T> extends com.baomidou.mybatisplus.core.conditions.AbstractWrapper<T,String,QueryWrap<T>> implements com.baomidou.mybatisplus.core.conditions.query.Query<QueryWrap<T>,T,String>
相比 QueryWrapper 的增强如下: 1,new QueryWrapper(T entity)时, 对entity 中的string字段 %和_ 符号进行转义,便于模糊查询 2,new QueryWrapper(T entity)时, 对entity 中 RemoteData 类型的字段 值为null或者 key为null或者""时,忽略拼接成查询条件 3,对nested、eq、ne、gt、ge、lt、le、in、*like*、 等方法 进行条件判断,null 或 "" 字段不加入查询 4,对*like*相关方法的参数 %和_ 符号进行转义,便于模糊查询 5,增加 leFooter 方法, 将日期参数值,强制转换成当天 23:59:59 6,增加 geHeader 方法, 将日期参数值,强制转换成当天 00:00:00
addCondition, addNestedCondition, allEq, allEq, and, and, appendSqlSegments, apply, between, clone, columnSqlInjectFilter, columnsToString, columnsToString, columnToSqlSegment, columnToString, comment, eq, exists, first, formatParam, formatSqlMaybeWithParam, func, ge, geSql, getEntity, getEntityClass, getExpression, getParamAlias, getParamNameValuePairs, getSqlComment, getSqlFirst, getSqlSegment, groupBy, groupBy, groupBy, gt, gtSql, having, in, in, inExpression, inExpression, initNeed, inSql, isNotNull, isNull, isUseAnnotationOrderBy, last, le, leSql, like, likeLeft, likeRight, likeValue, lt, ltSql, maybeDo, ne, nested, not, not, notBetween, notExists, notIn, notIn, notInSql, notLike, or, or, orderBy, orderBy, orderBy, setEntity, setEntityClass, setParamAliasgetCustomSqlSegment, getSqlSet, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhereequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, comment, exists, first, last, notExists, orfunc, geSql, groupBy, groupBy, groupBy, gtSql, having, inSql, isNotNull, isNull, leSql, ltSql, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDescpublic QueryWrap()
public QueryWrap(T entity)
public QueryWrap<T> select(Class<T> entityClass, Predicate<com.baomidou.mybatisplus.core.metadata.TableFieldInfo> predicate)
public String getSqlSelect()
public LbqWrapper<T> lambda()
public void clear()
public QueryWrap<T> geHeader(String column, LocalDateTime val)
public QueryWrap<T> leFooter(String column, LocalDateTime val)
public QueryWrap<T> in(String column, Collection<?> coll)
public <A> QueryWrap<T> ignore(BiFunction<T,A,?> setColumn)
setColumn - 这个是传入的待忽略字段的set方法Copyright © 2022. All rights reserved.