Esempio n. 1
0
 // 服务区域
 @ResponseBody
 @RequestMapping(value = "/pagination.do")
 public Object pagination(HttpServletRequest request) {
   Pagination.setPageParams(
       request, regionMapper, "selectAllConditionRegion", "selectAllConditionRegionCount");
   return new ResponsePagination(regionService.paginationCustom());
 }
Esempio n. 2
0
 @ResponseBody
 @RequestMapping(value = "updatePoint.do")
 public Object updatePoint(String pointx, String pointy, Integer id) {
   try {
     regionService.updatePoint(pointx, pointy, id);
     return new ResponseObject(true, "更新成功");
   } catch (Exception e) {
     logger.error("更新服务区域坐标出错");
     return new ResponseObject(false, "更新坐标出错");
   }
 }
Esempio n. 3
0
 @ResponseBody
 @RequestMapping(value = "/regionNoPass.do")
 public Object regionNoPass(Integer id) {
   try {
     Boolean flag = regionService.regionNoPass(id);
     if (flag == true) {
       return new ResponseObject(true, "关闭成功");
     }
     return new ResponseObject(false, "关闭出错");
   } catch (Exception e) {
     logger.error("关闭服务区域出错");
     return new ResponseObject(false, "关闭出错");
   }
 }
Esempio n. 4
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";
  }