/** * 删除按钮 * * @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; }
/** * 系统列表 * * @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; }
@RequestMapping("/list/button") public String button(HttpServletRequest req, Model model) { Tools.setModuleInfo(req, model); return "/sys/button"; }
@RequestMapping("/list/module") public String module(HttpServletRequest req, Model model) { Tools.setModuleInfo(req, model); return "/sys/module"; }