public class TreeWrapper<T> extends com.baomidou.mybatisplus.core.conditions.AbstractWrapper<T,String,TreeWrapper<T>> implements com.baomidou.mybatisplus.core.conditions.query.Query<TreeWrapper<T>,T,String>
| 构造器和说明 |
|---|
TreeWrapper(Class<T> entityClass,
String id,
String parentId) |
TreeWrapper(T entity,
String id,
String parentId) |
TreeWrapper(T entity,
String id,
String parentId,
String... columns) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
String |
getSqlSelect() |
protected TreeWrapper<T> |
instance()
用于生成嵌套 sql
故 sqlSelect 不向下传递
|
TreeWrapper<T> |
lazy(String parentIdValue)
懒加载
|
TreeWrapper<T> |
map(Map<String,Object> query)
Map条件增强
|
TreeWrapper<T> |
select(boolean condition,
List<String> columns)
指定查询字段
|
TreeWrapper<T> |
select(Class<T> entityClass,
Predicate<com.baomidou.mybatisplus.core.metadata.TableFieldInfo> predicate) |
addCondition, addNestedCondition, allEq, allEq, and, and, appendSqlSegments, apply, between, clone, columnsToString, columnsToString, columnToSqlSegment, columnToString, comment, doGroupBy, doOrderBy, eq, exists, first, formatParam, formatSqlMaybeWithParam, func, ge, geSql, getEntity, getEntityClass, getExpression, getParamAlias, getParamNameValuePairs, getSqlComment, getSqlFirst, getSqlSegment, groupBy, 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, notLikeLeft, notLikeRight, or, or, orderBy, orderBy, orderBy, orderBy, setEntity, setEntityClass, setParamAliasgetCustomSqlSegment, getSqlSet, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, isNonEmptyOfEntity, isNonEmptyOfNormal, isNonEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhereequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallEq, allEq, allEq, allEq, between, eq, ge, gt, le, like, likeLeft, likeRight, lt, ne, notBetween, notLike, notLikeLeft, notLikeRightapply, comment, exists, first, last, notExists, orfunc, geSql, groupBy, groupBy, groupBy, gtSql, having, in, in, inSql, isNotNull, isNull, leSql, ltSql, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDescpublic TreeWrapper<T> select(boolean condition, List<String> columns)
select 在接口中 com.baomidou.mybatisplus.core.conditions.query.Query<TreeWrapper<T>,T,String>condition - 执行条件columns - 字段列表public TreeWrapper<T> select(Class<T> entityClass, Predicate<com.baomidou.mybatisplus.core.metadata.TableFieldInfo> predicate)
select 在接口中 com.baomidou.mybatisplus.core.conditions.query.Query<TreeWrapper<T>,T,String>public TreeWrapper<T> lazy(String parentIdValue)
public TreeWrapper<T> map(Map<String,Object> query)
public String getSqlSelect()
getSqlSelect 在接口中 com.baomidou.mybatisplus.core.conditions.query.Query<TreeWrapper<T>,T,String>getSqlSelect 在类中 com.baomidou.mybatisplus.core.conditions.Wrapper<T>protected TreeWrapper<T> instance()
故 sqlSelect 不向下传递
instance 在类中 com.baomidou.mybatisplus.core.conditions.AbstractWrapper<T,String,TreeWrapper<T>>public void clear()
clear 在类中 com.baomidou.mybatisplus.core.conditions.AbstractWrapper<T,String,TreeWrapper<T>>Copyright © 2024. All rights reserved.