示例#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;
 }
示例#2
0
 @RequestMapping("/findSysConfig")
 @ResponseBody
 public Grid findSysConfig(SysConfig sysConfig, HttpServletRequest request) {
   Grid grid = new Grid();
   List<SysConfig> sysConfigList = sysConfigService.find(sysConfig, this.getPage(request));
   long total = sysConfigService.findCount(sysConfig, this.getPage(request));
   grid.setRows(sysConfigList);
   grid.setTotal(total);
   return grid;
 }
示例#3
0
 /** 根据operator对象查询Log 彭坤 2015年4月28日 */
 @RequestMapping("/findLogByOperatorId")
 @ResponseBody
 public Grid findLogByOperatorId(Operator operator, Log log, HttpServletRequest request) {
   List<Log> logs = sysConfigService.findLogByOperatorId(operator, log, this.getPage(request));
   Long count = sysConfigService.findCountLog(operator, log);
   Grid grid = new Grid();
   grid.setTotal(count);
   grid.setRows(logs);
   return grid;
 }
示例#4
0
 @RequestMapping("/findAllUsers")
 public @ResponseBody Grid findAllUsers(User user, HttpServletRequest request) {
   this.addLog(request, "查询所有会员", Constant.LOG_TYPE_SELECT);
   Grid grid = new Grid();
   List<User> users = userService.findByConditions(user, this.getPage(request));
   long count = userService.findByConditionsCount(user);
   grid.setRows(users);
   grid.setTotal(count);
   return grid;
 }