mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
add selectListByMap(Map<String, Object> whereConditions, int count) in BaseMapper
This commit is contained in:
parent
c2887eef2f
commit
2f54af9122
@ -218,6 +218,17 @@ public interface BaseMapper<T> {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据 map 来构建查询条件,查询多条数据
|
||||
*
|
||||
* @param whereConditions 条件列表
|
||||
* @return 数据列表
|
||||
*/
|
||||
default List<T> selectListByMap(Map<String, Object> whereConditions, int count) {
|
||||
return selectListByQuery(QueryWrapper.create().where(whereConditions).limit(count));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据 query 来构建条件查询数据列表
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user