예제 #1
0
 /** 查看 */
 @RequestMapping(value = "/view", method = RequestMethod.GET)
 public String view(Long id, ModelMap model) {
   model.addAttribute("genders", Gender.values());
   model.addAttribute("memberAttributes", memberAttributeService.findList());
   model.addAttribute("member", memberService.find(id));
   return "/admin/member/view";
 }
예제 #2
0
 /** 添加 */
 @RequestMapping(value = "/add", method = RequestMethod.GET)
 public String add(ModelMap model) {
   model.addAttribute("genders", Gender.values());
   model.addAttribute("memberRanks", memberRankService.findAll());
   model.addAttribute("memberAttributes", memberAttributeService.findList());
   return "/admin/member/add";
 }