@Override
public Pagination findPagination(Map<String, Object> queryMap,
int currentPage, int pageSize)
{
SchoolCriteria schoolCriteria = new SchoolCriteria();
Criteria criteria = schoolCriteria.createCriteria();
// 设置搜索条件参数
if (queryMap != null)
{
if (queryMap.containsKey("name"))
{
criteria.andNameLike("%" + (String) queryMap.get("name") + "%");
}
if (queryMap.containsKey("englishName"))
{
criteria.andEnglishNameLike("%" + (String) queryMap.get("englishName") + "%");
}
}
// 设置分页参数
schoolCriteria.setPageSize(pageSize);
schoolCriteria.setStartIndex((currentPage - 1) * pageSize);
List<School> schools = schoolMapper.selectByCriteria(schoolCriteria);
// 结果集处理所属完整区域字符串
List<School> items = new ArrayList<School>();
for(School s : schools)
{