support list() and count() in SQLProvider, fix custom column mapper
This commit is contained in:
@ -43,6 +43,7 @@ public interface BaseMapper<T, P> {
|
||||
*
|
||||
* @return 数据量
|
||||
*/
|
||||
@SelectProvider(type = SQLProvider.class, method = "count")
|
||||
long count();
|
||||
|
||||
/**
|
||||
@ -52,6 +53,7 @@ public interface BaseMapper<T, P> {
|
||||
* @param limit 数据量
|
||||
* @return 数据列表
|
||||
*/
|
||||
@SelectProvider(type = SQLProvider.class, method = "list")
|
||||
List<T> list(long offset, int limit);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user