1 2 3 4 5 6 7 8 9 10 11 12 13
| @Override public Integer querForPageTotalCountByYear(int min, int max) { String sql = "select count(*) from s_by where year between ? and ?"; Number count = (Number)queryForSingleValue(sql,min,max); return count.intValue(); }
@Override public List<Byue> querForPageItemsByYear(int begin, int pageSize, int min, int max) { String sql = "select `id`,`name`,`sclass`,`bm`, `zw`, `year`,`img_path` imgPath " + "from s_by where year between ? and ? order by year limit ?,?"; return queryForyList(Byue.class,sql,min,max,begin,pageSize); }
|