Пример #1
0
 // 服务区域
 @ResponseBody
 @RequestMapping(value = "/pagination.do")
 public Object pagination(HttpServletRequest request) {
   Pagination.setPageParams(
       request, regionMapper, "selectAllConditionRegion", "selectAllConditionRegionCount");
   return new ResponsePagination(regionService.paginationCustom());
 }
Пример #2
0
  @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";
  }