This commit is contained in:
Looly
2022-04-30 22:56:23 +08:00
parent 40aa543edd
commit a3d5385efc
2 changed files with 16 additions and 31 deletions

View File

@@ -867,21 +867,6 @@ public abstract class AbstractDb<R extends AbstractDb<R>> implements ConnectionH
}
}
/**
* 分页查询<br>
* 查询条件为多个key value对表示默认key = value如果使用其它条件可以使用where.put("key", " &gt; 1")value也可以传Condition对象key被忽略
*
* @param where 条件实体类(包含表名)
* @param page 页码
* @param numPerPage 每页条目数
* @return 分页结果集
* @throws DbRuntimeException SQL执行异常
* @since 3.2.2
*/
public PageResult<Entity> page(final Entity where, final int page, final int numPerPage) throws DbRuntimeException {
return this.page(where, new Page(page, numPerPage));
}
/**
* 分页查询<br>
* 查询条件为多个key value对表示默认key = value如果使用其它条件可以使用where.put("key", " &gt; 1")value也可以传Condition对象key被忽略