public interface IMysqlSelectMapperPlus<T>
Modifier and Type | Method and Description |
---|---|
List<T> |
getAll()
获取所有数据
|
int |
getCountByCondition(T condition)
根据条件获取对应数据总数
|
int |
getCountByPk(String key,
String... ids)
指定主键名称(Java类字段名字符串),主键集合,获取指定记录总数。入参为空,会返回所有数据
|
List<Object> |
getExistPksByPk(String key,
String... ids)
根据指定的主键名称、主键集合,获取数据库中存在的主键集合数据
为能够结合pagehelper分页插件使用,本方法输出的SQL语句不含“limit” |
int |
getExistPksCountByPk(String key,
String... ids)
根据指定的主键名称、主键集合,获取数据库中存在的主键集合数据总数
|
List<T> |
getSomeByCondition(T condition)
根据条件获取对应数据
为能够结合pagehelper分页插件使用,本方法输出的SQL语句不含“limit” |
List<T> |
getSomeByPk(String key,
String... ids)
指定主键名称(Java类字段名字符串),主键集合,获取指定记录集合。入参为空,会返回所有数据
为能够结合pagehelper分页插件使用,本方法输出的SQL语句不含“limit” |
@SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") List<T> getAll()
@SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") List<T> getSomeByPk(@Param(value="key") String key, @Param(value="ids") String... ids)
key
- ids
- @SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") int getCountByPk(@Param(value="key") String key, @Param(value="ids") String... ids)
key
- ids
- @SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") List<T> getSomeByCondition(T condition)
condition
- @SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") int getCountByCondition(T condition)
condition
- @SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") List<Object> getExistPksByPk(@Param(value="key") String key, @Param(value="ids") String... ids)
key
- ids
- @SelectProvider(type=SelectMapperPlusProvider.class, method="dynamicSQL") int getExistPksCountByPk(@Param(value="key") String key, @Param(value="ids") String... ids)
key
- ids
- Copyright © 2018. All rights reserved.