@RequestMapping(value = "/updateTvContentTitle") public String updateTvContentTitle(TvContent tvContent) { Tv tv = tvService.selectTvByTvNo(tvContent.getTvNo()); tvContent.setTitle(tv.getTvTitle() + " " + tvContent.getTitle()); int result = tvService.updateTvContentTitle(tvContent); return "redirect:/tvContentList?tvNo=" + tvContent.getTvNo(); }
@RequestMapping(value = "/addTvContent") public String addTvContent(TvContent tvContent) { Tv tv = tvService.selectTvByTvNo(tvContent.getTvNo()); tvContent.setTitle(tv.getTvTitle() + " " + tvContent.getTitle()); int result = tvService.addTvContent(tvContent); log.info("title " + tvContent.getTitle() + ", result " + result); return "redirect:/tvContentList?tvNo=" + tvContent.getTvNo(); }
@RequestMapping(value = "/updateTv") public String updateTv(Tv tv) { int result = tvService.updateTv(tv); log.info("tvTitle " + tv.getTvTitle() + ", result " + result); return "redirect:/manage"; }