@Override
public Pagination findPagination(Map<String, Object> queryMap,
int currentPage, int pageSize)
{
MenuFeatureCriteria menuFeatureCriteria = new MenuFeatureCriteria();
Criteria criteria = menuFeatureCriteria.createCriteria();
// 设置搜索条件参数
if (queryMap != null)
{
if (queryMap.containsKey("feature"))
{
criteria.andFeatureLike("%" + (String) queryMap.get("feature") + "%");
}
}
// 设置分页参数
menuFeatureCriteria.setPageSize(pageSize);
menuFeatureCriteria.setStartIndex((currentPage - 1) * pageSize);