@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"; }
@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"; } }
@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; } }