@AdminMenu(text = "用户管理", groupId = JPressConsts.SYSTEM_MENU_USER, order = 0) public void index() { Page<User> page = userService._paginate(getPagePara(), 10, getPara("username"), getPara("email"), getPara("status")); int lockedCount = userService.findCountByStatus(User.STATUS_LOCK); int regCount = userService.findCountByStatus(User.STATUS_REG); int okCount = userService.findCountByStatus(User.STATUS_OK); setAttr("lockedCount", lockedCount); setAttr("regCount", regCount); setAttr("okCount", okCount); setAttr("totalCount", lockedCount + regCount + okCount); setAttr("page", page); List<Role> roles = roleService.findAll(); setAttr("roles", roles); render("user/list.html"); }