Exemplo n.º 1
0
 /**
  * 删除按钮
  *
  * @author yang.wei
  * @time 2016-01-19
  * @param req
  * @return Map<String, Object>
  */
 @RequestMapping("/delete/button")
 @ResponseBody
 public Map<String, Object> deleteButton(HttpServletRequest req) {
   Map<String, Object> result = new HashMap<String, Object>();
   Map<String, String> params = Tools.exactParams(req);
   systemManager.deleteButton(params);
   result.put("result", true);
   return result;
 }
Exemplo n.º 2
0
  /**
   * 系统列表
   *
   * @author yang.wei
   * @time 2016-1-13
   * @param req
   * @return Map<String, Object>
   */
  @RequestMapping("/list/data/system")
  @ResponseBody
  public Map<String, Object> getSystemByPage(HttpServletRequest req) {
    Map<String, Object> data = new HashMap<String, Object>();
    Map<String, String> params = Tools.exactParams(req);
    // 加入分页参数
    Page page =
        new Page(Integer.parseInt(params.get("page")), Integer.parseInt(params.get("rows")));
    // 参数处理,过滤条件
    int count = systemManager.getSystemCount(params);
    List<SystemModel> list = systemManager.getSystemList(params, page);

    data.put("total", count);
    data.put("rows", list);
    return data;
  }
Exemplo n.º 3
0
 @RequestMapping("/list/button")
 public String button(HttpServletRequest req, Model model) {
   Tools.setModuleInfo(req, model);
   return "/sys/button";
 }
Exemplo n.º 4
0
 @RequestMapping("/list/module")
 public String module(HttpServletRequest req, Model model) {
   Tools.setModuleInfo(req, model);
   return "/sys/module";
 }