类 CriteriaQueryWrapper<T>

  • 所有已实现的接口:
    com.baomidou.mybatisplus.core.conditions.interfaces.Compare<com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>,​String>, com.baomidou.mybatisplus.core.conditions.interfaces.Func<com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>,​String>, com.baomidou.mybatisplus.core.conditions.interfaces.Join<com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>>, com.baomidou.mybatisplus.core.conditions.interfaces.Nested<com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>,​com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>>, com.baomidou.mybatisplus.core.conditions.ISqlSegment, com.baomidou.mybatisplus.core.conditions.query.Query<com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>,​T,​String>, Serializable

    public class CriteriaQueryWrapper<T>
    extends com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T>
    自定义查询构造器
    作者:
    lym
    另请参阅:
    序列化表格
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected Map<String,​String> aliasMap
      外键表别名对象
      protected List<String> select
      要查询字段 支持 tbName(或者 tableAliasName).fieldName
      • 从类继承的字段 com.baomidou.mybatisplus.core.conditions.AbstractWrapper

        expression, lastSql, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, typedThis
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void createAlias​(Class cla)
      创建外键表关联对象,需要在mapper(xml)中编写join
      void createAlias​(String entry, String alias)
      创建外键表关联对象,需要在mapper(xml)中编写join
      CriteriaQueryWrapper<T> eq​(String column, Object val)
      等于
      CriteriaQueryWrapper<T> ge​(String column, Object val)
      ge
      Map<String,​String> getAliasMap()  
      PageQuery getPagerInfo()  
      String getSelect()  
      CriteriaQueryWrapper<T> gt​(String column, Object val)
      gt
      CriteriaQueryWrapper<T> in​(String column, Object... val)
      in
      CriteriaQueryWrapper<T> le​(String column, Object val)
      le
      CriteriaQueryWrapper<T> like​(String column, Object val)
      like
      com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T> likeLeft​(String column, Object val)
      likeLeft
      com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<T> likeRight​(String column, Object val)
      likeRight
      CriteriaQueryWrapper<T> lt​(String column, Object val)
      lt
      CriteriaQueryWrapper<T> or()
      or
      CriteriaQueryWrapper<T> select​(String sql)
      指定查询
      • 从类继承的方法 com.baomidou.mybatisplus.core.conditions.query.QueryWrapper

        clear, getSqlSelect, instance, lambda, select, select
      • 从类继承的方法 com.baomidou.mybatisplus.core.conditions.AbstractWrapper

        addCondition, addNestedCondition, allEq, allEq, and, and, apply, between, clone, columnsToString, columnToString, comment, doIt, eq, exists, first, formatSql, formatSqlIfNeed, func, ge, getEntity, getEntityClass, getExpression, getParamNameValuePairs, getSqlComment, getSqlFirst, getSqlSegment, groupBy, gt, having, in, initNeed, inSql, isNotNull, isNull, last, le, like, likeLeft, likeRight, likeValue, lt, ne, nested, not, notBetween, notExists, notIn, notInSql, notLike, or, or, orderBy, setEntity, setEntityClass
      • 从类继承的方法 com.baomidou.mybatisplus.core.conditions.Wrapper

        getCustomSqlSegment, getSqlSet, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhere
      • 从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Compare

        allEq, allEq, allEq, allEq, between, ne, notBetween, notLike
      • 从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Func

        func, groupBy, groupBy, having, in, in, inSql, isNotNull, isNull, notIn, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc
      • 从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Join

        apply, comment, exists, first, last, notExists
      • 从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Nested

        and, nested, or
      • 从接口继承的方法 com.baomidou.mybatisplus.core.conditions.query.Query

        select