params.put("offset", page * offset);
return queryForList("getCenterUserByCity", params);
}
public Collection<CenterUser> getCenterUsersByNameAndSurname(String name, String surname, String centerId, int page) throws DataAccessException {
Map params = new FastMap();
params.put("name", name.toUpperCase());
params.put("surname", surname.toUpperCase());
params.put("centerId", centerId);
params.put("limit", offset);
params.put("offset", page * offset);
return queryForList("getCenterUserByNameAndSurname", params);
}