Exemple #1
0
  /**
   * 通过一个待验证用户
   *
   * @param model
   * @param userid
   * @return
   */
  @RequestMapping(value = "/member/accept/{userid}", method = RequestMethod.GET)
  public String acceptOneMember(
      Model model, @PathVariable("userid") int userid, RedirectAttributes redirectAttributes) {

    memberDao.acceptMember(new int[] {userid});
    redirectAttributes.addFlashAttribute("Msg", "已通过!");
    return "redirect:/admin/verify/list";
  }
Exemple #2
0
 /**
  * 批量通过待验证的用户
  *
  * @param model
  * @param userid
  * @return
  */
 @RequestMapping(value = "/member/accept", method = RequestMethod.POST)
 public String acceptMember(
     Model model,
     @RequestParam(value = "userid[]") int[] userid,
     RedirectAttributes redirectAttributes) {
   memberDao.acceptMember(userid);
   redirectAttributes.addFlashAttribute("Msg", "已通过!");
   return "redirect:/admin/verify/list";
 }
Exemple #3
0
  /**
   * 分页显示通过验证用户
   *
   * @param model
   * @param page
   * @return
   */
  @RequestMapping(value = "/member/list", method = RequestMethod.GET)
  public String viewMemberList(Model model, String page) {

    int pageNum = page == null ? 1 : Integer.valueOf(page);
    Page<V9Member> memberPage = memberDao.queryForMemList(pageNum, 15, 1);
    model.addAttribute("page", memberPage);
    model.addAttribute("currentPage", pageNum);
    return "admin/member/memberlist";
  }