Пример #1
0
  @RequestMapping(value = "/updateBParaIndex")
  public String updateBParaIndex(BPara bPara) {

    BPara bParaModel = bParaService.getBPara(bPara);
    request.setAttribute("bParaModel", bParaModel);
    return "admin/sys/para-update";
  }
Пример #2
0
  @RequestMapping(value = "/updateBPara")
  public String updateBPara(BPara bPara) {

    long result = bParaService.updateBPara(bPara);
    if (result > 0) {
      this.writeJson(new InfoMsg("保存成功", "y"));
    } else {
      this.writeJson(new InfoMsg("保存失败", "n"));
    }
    return null;
  }
Пример #3
0
  @RequestMapping(value = "/queryBParaList")
  public String queryBParaList(BPara bPara) {
    Map<String, SearchOperator> options = new HashMap<String, SearchOperator>();
    options.put("paraName", SearchOperator.LIKE);
    options.put("paraCode", SearchOperator.LIKE);
    options.put("isDelete", SearchOperator.EQ);
    PageList pageList = bParaService.queryBParaPage(bPara, options, pageBounds);

    request.setAttribute("pageBean", pageList);
    request.setAttribute("page", pageList.getPaginator());

    request.setAttribute("model", bPara);
    return "admin/sys/para-list";
  }