类 DmeQueryWrapperUtil
java.lang.Object
com.sie.mbm.mom.framework.db.executeDme.utils.DmeQueryWrapperUtil
- 直接已知子类:
QueryWrapperUtil
queryWrapper转义工具类
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static SerializedLambdagetSerializedLambda(Serializable getter) static <T> List<T> listAllByExecutePagination(DmeMapper<T> paginationMapper, com.mybatisflex.core.query.QueryWrapper queryWrapper) 查询所有数据,(自己写sql的执行语句)static <K,T, U> List <T> listAllByInQuery(List<K> list, DmeMapper dmeMapper, com.mybatisflex.core.util.LambdaGetter<U> fn) static <K,T, U> List <T> listAllByInQuery(List<K> list, DmeMapper dmeMapper, com.mybatisflex.core.util.LambdaGetter<U> fn, com.mybatisflex.core.query.QueryWrapper queryWrapper) static <T> List<T> listAllByPagination(DmeMapper<T> paginationMapper, com.mybatisflex.core.query.QueryWrapper queryWrapper) 查询所有数据static <T,R> com.mybatisflex.core.query.QueryWrapper pageEqAndLike(T dto, Class<R> rClass) 在实体加注解后,组装QueryWrapperstatic <T,R> com.mybatisflex.core.query.QueryWrapper queryEq(com.mybatisflex.core.query.QueryWrapper queryWrapper, LogicalEnum operator, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) static <T,R> com.mybatisflex.core.query.QueryWrapper queryEq(com.mybatisflex.core.query.QueryWrapper queryWrapper, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) static <T,R> com.mybatisflex.core.query.QueryWrapper queryEq(R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) static <T,R> com.mybatisflex.core.query.QueryWrapper queryLike(com.mybatisflex.core.query.QueryWrapper queryWrapper, LogicalEnum operator, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) static <T,R> com.mybatisflex.core.query.QueryWrapper queryLike(com.mybatisflex.core.query.QueryWrapper queryWrapper, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) static <T,R> com.mybatisflex.core.query.QueryWrapper queryLike(R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) static <T,R> com.mybatisflex.core.query.QueryWrapper selectTypeWrapper(T dto, Class<R> entityClass) 目前已支持的SelectTypeEnum有EQUAL、LIKE、TIME_RANGEprivate static <K,T> com.mybatisflex.core.query.QueryWrapper 根据查询的列表和字段获取查询条件private static <K,T> com.mybatisflex.core.query.QueryWrapper setQuery(List<K> list, com.mybatisflex.core.util.LambdaGetter<T> fn, com.mybatisflex.core.query.QueryWrapper queryWrapper) 根据查询的列表和字段获取查询条件
-
字段详细资料
-
lambdaMap
-
DEFAULT_EXPORTED_SIZE
-
DEFAULT_EXPORTED_CURRENT
-
COLUMN_SEARCH_SIZE
-
-
构造器详细资料
-
DmeQueryWrapperUtil
public DmeQueryWrapperUtil()
-
-
方法详细资料
-
pageEqAndLike
在实体加注解后,组装QueryWrapper- 参数:
dto- 实体rClass- 类- 返回:
- QueryWrapper
-
queryEq
public static <T,R> com.mybatisflex.core.query.QueryWrapper queryEq(R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) - 参数:
data- 字段值来源functions- 字段条件- 返回:
- QueryWrapper
-
queryEq
public static <T,R> com.mybatisflex.core.query.QueryWrapper queryEq(com.mybatisflex.core.query.QueryWrapper queryWrapper, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) - 参数:
queryWrapper- 查询条件data- 字段值来源functions- 字段条件- 返回:
-
queryEq
public static <T,R> com.mybatisflex.core.query.QueryWrapper queryEq(com.mybatisflex.core.query.QueryWrapper queryWrapper, LogicalEnum operator, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) - 参数:
queryWrapper- 查询条件operator- 逻辑运算符data- 字段值来源functions- 字段条件- 返回:
-
queryLike
public static <T,R> com.mybatisflex.core.query.QueryWrapper queryLike(R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) - 参数:
data- 字段值来源functions- 字段条件- 返回:
-
queryLike
public static <T,R> com.mybatisflex.core.query.QueryWrapper queryLike(com.mybatisflex.core.query.QueryWrapper queryWrapper, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) - 参数:
queryWrapper- 查询条件data- 字段值来源functions- 字段条件- 返回:
-
queryLike
public static <T,R> com.mybatisflex.core.query.QueryWrapper queryLike(com.mybatisflex.core.query.QueryWrapper queryWrapper, LogicalEnum operator, R data, com.mybatisflex.core.util.LambdaGetter<T>... functions) - 参数:
queryWrapper- 查询条件operator- 逻辑运算符data- 字段值来源functions- 字段条件- 返回:
-
getSerializedLambda
-
listAllByExecutePagination
public static <T> List<T> listAllByExecutePagination(DmeMapper<T> paginationMapper, com.mybatisflex.core.query.QueryWrapper queryWrapper) 查询所有数据,(自己写sql的执行语句)- 参数:
paginationMapper- mapperqueryWrapper- 查询条件- 返回:
- 所有数据
-
listAllByPagination
public static <T> List<T> listAllByPagination(DmeMapper<T> paginationMapper, com.mybatisflex.core.query.QueryWrapper queryWrapper) 查询所有数据- 参数:
paginationMapper- mapperqueryWrapper- 查询条件- 返回:
- 所有数据
-
listAllByInQuery
public static <K,T, List<T> listAllByInQueryU> (List<K> list, DmeMapper dmeMapper, com.mybatisflex.core.util.LambdaGetter<U> fn) - 参数:
list- 查询的列表dmeMapper- mapperfn- 查询的字段- 返回:
- 全部的列表
-
setQuery
private static <K,T> com.mybatisflex.core.query.QueryWrapper setQuery(List<K> list, com.mybatisflex.core.util.LambdaGetter<T> fn) 根据查询的列表和字段获取查询条件- 参数:
list- 查询的列表fn- 查询的字段- 返回:
- QueryWrapper
-
listAllByInQuery
public static <K,T, List<T> listAllByInQueryU> (List<K> list, DmeMapper dmeMapper, com.mybatisflex.core.util.LambdaGetter<U> fn, com.mybatisflex.core.query.QueryWrapper queryWrapper) - 参数:
list- 查询的列表dmeMapper- mapperfn- 查询的字段- 返回:
- 全部的列表
-
setQuery
private static <K,T> com.mybatisflex.core.query.QueryWrapper setQuery(List<K> list, com.mybatisflex.core.util.LambdaGetter<T> fn, com.mybatisflex.core.query.QueryWrapper queryWrapper) 根据查询的列表和字段获取查询条件- 参数:
list- 查询的列表fn- 查询的字段- 返回:
- QueryWrapper
-
selectTypeWrapper
public static <T,R> com.mybatisflex.core.query.QueryWrapper selectTypeWrapper(T dto, Class<R> entityClass) 目前已支持的SelectTypeEnum有EQUAL、LIKE、TIME_RANGE- 类型参数:
T-R-- 参数:
dto- 请求参数entityClass- 数据实体对应的class- 返回:
-