public List<Supply> getSupplyList(int first, int last) { HashMap<String, Integer> params = new HashMap<String, Integer>(); params.put("first", first); params.put("last", last); List<Supply> supplys = supplyMapper.getSupplyListByPage(params); return supplys; }