public void getPage() {
RespBody respbody = new RespBody();
try {
int pageSize = getParaToInt("pageSize");
int pageNumber = getParaToInt("pageNumber");
int type = getParaToInt("type");
Page<Record> download = Db.paginate(pageNumber, pageSize, "select * ", "from download where file_type="+type);
respbody.setData(download);
respbody.setResult(true);
} catch (Exception e) {
e.printStackTrace();
respbody.setMsg("请检查参数是否遗漏");
}
renderJson(respbody);
}