Example #1
0
 @RequestMapping(value = "/updateLogData.action", method = RequestMethod.POST)
 @ResponseBody
 public String updateLogData(HttpServletRequest request) throws Exception {
   Map<String, Object> map = WebUtil.getQueryParameter(request);
   logDataService.updateLogData(map);
   return "success";
 }
Example #2
0
 @RequestMapping(value = "/insertLogData.action", method = RequestMethod.POST)
 @ResponseBody
 public String insertUser(HttpServletRequest request) throws Exception {
   Map<String, Object> map = WebUtil.getQueryParameter(request);
   if (map != null) {
     return logDataService.insertLogData(map);
   } else {
     return "error";
   }
 }
Example #3
0
  @RequestMapping(value = "/getLogDataList.action")
  @ResponseBody
  public Object getLogDataList(HttpServletRequest request, Pageable pageable) throws Exception {
    Map<String, Object> map = WebUtil.getQueryParameter(request);
    pageable.setPage((pageable.getPage() - 1) * pageable.getRows());

    List<Logdata> logDataList = logDataService.getLogDataList(map, pageable);
    if (logDataList != null && logDataList.size() > 0) {
      Page<Logdata> page = new Page<Logdata>();
      page.setTotal(logDataService.getLogDataListSize(map, pageable));
      page.setRows(logDataList);
      return page;
    } else {
      return null;
    }
  }