示例#1
0
  @RequestMapping(value = "/updateTvContent")
  public String updateTvContent(TvContent tvContent) {

    Tv tv = tvService.selectTvByTvNo(tvContent.getTvNo());
    tvContent.setTitle(tv.getTvTitle() + " " + tvContent.getTitle());
    int result = tvService.updateTvContent(tvContent);

    log.info("title " + tvContent.getTitle() + ", result " + result);

    return "redirect:/tvContentList?tvNo=" + tvContent.getTvNo();
  }
示例#2
0
  @RequestMapping(value = "/deleteTvContent")
  public String deleteTvContent(TvContent tvContent) {

    int result = tvService.deleteTvContent(tvContent.getContentNo());

    log.info("title " + tvContent.getTitle() + ", result " + result);

    return "redirect:/tvContentList?tvNo=" + tvContent.getTvNo();
  }