/** * 약관정보 목록을 조회한다. * * @param stplatManageVO */ @IncludedInfo(name = "약관관리", order = 5040, gid = 50) @RequestMapping(value = "/uss/sam/stp/listStplat.do") @Secured("ROLE_ADMIN") public String listStplat(@ModelAttribute StplatManageVO stplatManageVO, ModelMap model) { PaginationInfo paginationInfo = new PaginationInfo(); stplatManageVO.fillPageInfo(paginationInfo); model.addAttribute("resultList", stplatManageService.selectStplatList(stplatManageVO)); int totCnt = stplatManageService.selectStplatListCnt(stplatManageVO); stplatManageVO.setTotalRecordCount(totCnt); paginationInfo.setTotalRecordCount(totCnt); model.addAttribute("paginationInfo", paginationInfo); return WebUtil.adjustViewName("/uss/sam/stp/StplatList"); }
/** * 약관정보를 등록한다. * * @param stplatManageVO */ @RequestMapping("/uss/sam/stp/insertStplat.do") @Secured("ROLE_ADMIN") public String insertStplat( @ModelAttribute StplatManageVO stplatManageVO, BindingResult bindingResult, ModelMap model) { beanValidator.validate(stplatManageVO, bindingResult); if (bindingResult.hasErrors()) { return WebUtil.adjustViewName("/uss/sam/stp/StplatRegist"); } // 로그인VO에서 사용자 정보 가져오기 LoginVO loginVO = (LoginVO) UserDetailsHelper.getAuthenticatedUser(); stplatManageVO.setFrstRegisterId(loginVO.getUniqId()); // 최초등록자ID stplatManageService.insertStplat(stplatManageVO); model.addAttribute("message", MessageHelper.getMessage("success.common.insert")); return WebUtil.redirectJsp(model, "/uss/sam/stp/listStplat.do"); }