public class BaseQueryServiceSupport<M extends MybatisBaseMapper<?>,T> extends Object implements IBaseQueryService<T>
query service support
| 限定符和类型 | 字段和说明 |
|---|---|
protected M |
baseMapper |
LOGGER| 构造器和说明 |
|---|
BaseQueryServiceSupport() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
getAllData()
查询所有数据
|
PageWrapper<T> |
getAllPageData(Pagination page)
查询所有分页数据
|
T |
getDataById(Serializable id) |
T |
getDataByObjs(T t) |
List<T> |
getListDataByObjs(T t) |
List<T> |
getListDataByWrapper(com.baomidou.mybatisplus.core.conditions.Wrapper wrapper) |
PageWrapper<T> |
getPageData(Pagination page,
T t) |
PageWrapper<T> |
getPageDataByWrapper(Pagination page,
com.baomidou.mybatisplus.core.conditions.Wrapper wrapper)
wrapper 条件查询
|
@Autowired protected M extends MybatisBaseMapper<?> baseMapper
public PageWrapper<T> getAllPageData(Pagination page)
IBaseQueryServicegetAllPageData 在接口中 IBaseQueryService<T>public PageWrapper<T> getPageData(Pagination page, T t)
getPageData 在接口中 IBaseQueryService<T>public PageWrapper<T> getPageDataByWrapper(Pagination page, com.baomidou.mybatisplus.core.conditions.Wrapper wrapper)
IBaseQueryServicegetPageDataByWrapper 在接口中 IBaseQueryService<T>public List<T> getAllData()
IBaseQueryServicegetAllData 在接口中 IBaseQueryService<T>public List<T> getListDataByObjs(T t)
getListDataByObjs 在接口中 IBaseQueryService<T>public List<T> getListDataByWrapper(com.baomidou.mybatisplus.core.conditions.Wrapper wrapper)
getListDataByWrapper 在接口中 IBaseQueryService<T>public T getDataById(Serializable id)
getDataById 在接口中 IBaseQueryService<T>public T getDataByObjs(T t)
getDataByObjs 在接口中 IBaseQueryService<T>Copyright © 2019. All rights reserved.