// 服务区域
 @ResponseBody
 @RequestMapping(value = "/pagination.do")
 public Object pagination(HttpServletRequest request) {
   Pagination.setPageParams(
       request, regionMapper, "selectAllConditionRegion", "selectAllConditionRegionCount");
   return new ResponsePagination(regionService.paginationCustom());
 }
  @AccessMenu
  @RequestMapping(value = "/index")
  public String index(HttpServletRequest request) {
    Map<String, Object> params = new HashMap<String, Object>();
    String parentid =
        request.getParameter("parentid") == null ? "0" : request.getParameter("parentid");
    params.put("parentid", parentid);
    Pagination.setPageParams(
        request, regionMapper, "selectAllConditionRegion", "selectAllConditionRegionCount");
    request.setAttribute("pagination", regionService.paginationCustom(params));

    request.setAttribute("parentid", parentid);
    return "/basedata/region_list";
  }
Beispiel #3
0
 @ResponseBody
 @AccessPagination(custom = true, async = AccessPagination.ASYNC.ASYNC_YES)
 @RequestMapping("/pagination.do")
 public void pagination(HttpServletRequest request) {
   Pagination.setContext(helpService);
 }