@RequestMapping(value = "delete")
 public String delete(HttpServletRequest request, @RequestParam Long id) throws Exception {
   lianaInterfaceManeger.delete(id);
   request.setAttribute("msg", "删除成功");
   // addActionMessage("删除字典成功");
   return list(request);
 }
 @RequestMapping(value = "save")
 public String save(HttpServletRequest request, TblLianainterface entity) throws Exception {
   lianaInterfaceManeger.saveOrUpdate(entity);
   request.setAttribute("success", true);
   request.setAttribute("msg", "提交成功");
   return list(request);
 }
 @RequestMapping(value = "input")
 public String input(HttpServletRequest request, @RequestParam(required = false) Long id) {
   if (id != null) {
     TblLianainterface entity = lianaInterfaceManeger.get(id);
     request.setAttribute("entity", entity);
     request.setAttribute("id", id);
   }
   return "sys/lianaInterface/form";
 }
  // -- CRUD Action 函数 --//
  @RequestMapping(value = "list")
  public String list(HttpServletRequest request) throws Exception {
    List<PropertyFilter> filters = PropertyFilter.buildFromHttpRequest(request);
    Page<TblLianainterface> page = new Page<TblLianainterface>(Constants.PAGE_SIZE); // 每页5条记录
    // 设置默认排序方式
    if (!page.isOrderBySetted()) {
      page.setOrderBy("id");
      page.setOrder(Page.ASC);
    }

    if (request.getParameter("page.pageNo") != null) {
      page.setPageNo(Integer.parseInt(request.getParameter("page.pageNo")));
      page.setOrderBy(request.getParameter("page.orderBy"));
      page.setOrder(request.getParameter("page.order"));
    }

    page = lianaInterfaceManeger.findPage(page, filters);
    request.setAttribute("page", page);
    return "sys/lianaInterface/list";
  }