// 列表,查找
  public ActionForward findList(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    String name = request.getParameter("name");
    Pager pager = PagerBuilder.build(request);
    Map map = new HashMap();
    int start = (pager.getPageNo() - 1) * pager.getPageSize();
    int end = pager.getPageSize();
    map.put("start", start);
    map.put("end", end);
    map.put("name", name);
    pager.setEntryCount(systemparameterService.findCount(map));
    pager.addParam("name", name);
    List<Systemparameter> list = systemparameterService.findList(map);
    request.setAttribute("list", list);
    return mapping.findForward("list");
  }
  // 更新
  public ActionForward update(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    SystemparameterForm systemparameterForm = (SystemparameterForm) form;
    Systemparameter systemparameter = new Systemparameter();
    BeanUtils.copyProperties(systemparameter, systemparameterForm);
    systemparameterService.update(systemparameter);
    logger.info("systemparameter update");
    return mapping.findForward("update");
  }
  // 编辑
  public ActionForward edit(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    String id = request.getParameter("id");
    Systemparameter systemparameter =
        systemparameterService.querySystemparameter(Integer.parseInt(id));
    SystemparameterForm systemparameterForm = new SystemparameterForm();
    BeanUtils.copyProperties(systemparameterForm, systemparameter);
    request.setAttribute("obj", systemparameterForm);
    return mapping.findForward("edit");
  }