}
ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
IAccountDetailDao accountDetailDao = (IAccountDetailDao) ac.getBean("accountDetailDao");
PageList pageList = accountDetailDao.queryAccountDetails(sql,condition, Integer.parseInt(page), Integer.parseInt(maxResult));
//当前页数设置
pageInfo.put("page", page);
//当前页数设置
pageInfo.put("size", maxResult);
//总搜索数据量设置
pageInfo.put("total", pageList.getTotalRecordNum());
String jsonStr = creMessageJSON(pageList.getDataList(), pageInfo);
//response相关处理
response.setContentType("html/txt");
response.setCharacterEncoding("utf-8");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache, must-revalidate");