Example #1
0
 /** 查询搜索记录 王梦圆 2015年6月15日 */
 @RequestMapping("/findAll")
 public @ResponseBody Grid findAll(Search search, HttpServletRequest request) {
   Grid grid = new Grid();
   List<Search> list = searchService.findAll(search, this.getPage(request));
   long count = searchService.findCount(search);
   grid.setRows(list);
   grid.setTotal(count);
   return grid;
 }
Example #2
0
 /** 导出搜索 王梦圆 2015年6月15日 */
 @RequestMapping(value = "/exportSearch", method = RequestMethod.POST)
 public void exportSearch(Search search, HttpServletRequest request, HttpServletResponse response)
     throws UnsupportedEncodingException {
   this.addLog(request, "导出搜索", Constant.LOG_TYPE_EXPORT);
   String searchContent = search.getSearchContent();
   searchContent = new String(searchContent.getBytes("iso-8859-1"), "utf-8");
   String userNickname = search.getUserNickname();
   userNickname = new String(userNickname.getBytes("iso-8859-1"), "utf-8");
   List<Search> searchs = searchService.findAll(search, this.getExportPage(request));
   super.doExport(
       request,
       response,
       searchs,
       "搜索关键词",
       "搜索关键词",
       this.getHeadForSearch(),
       this.getColumnForSearch());
 }
Example #3
0
 /** 热门搜索词 王梦圆 2015年6月16日 */
 @RequestMapping("/findByCount")
 public @ResponseBody List<SearchCount> findByCount(
     String queryBeginTimeStr, String queryEndTimeStr) {
   List<SearchCount> searchs = searchService.findByCount(queryBeginTimeStr, queryEndTimeStr);
   return searchs;
 }