public void insertGood(HttpSession session, Long content_no, Long member_no) { GoodContentVo goodContentVo = new GoodContentVo(); MemberVo memberVo = (MemberVo) session.getAttribute("authUser"); goodContentVo.setMemberName(memberVo.getMemberName()); goodContentVo.setContent_no(content_no); goodContentVo.setMember_no(member_no); goodContentDao.insert(goodContentVo); }
public void deleteGood(HttpSession session, Long contnet_no, Long member_no) { GoodContentVo vo = goodContentDao.selectVoCnoMno(contnet_no, member_no); long goodContnet_no = vo.getGoodContent_no(); goodContentDao.delete(goodContnet_no); }
public GoodContentVo selectMno(Long member_no, Long content_no) { GoodContentVo goodContentVo = goodContentDao.selectVoCnoMno(content_no, member_no); return goodContentVo; }
public List<GoodContentVo> selectCntNo(Long content_no) { List<GoodContentVo> list = goodContentDao.selectAllByCno(content_no); return list; }
public void selectCntNo(Model model, Long content_no) { List<GoodContentVo> list = goodContentDao.selectAllByCno(content_no); model.addAttribute("goodContent", list.size()); return; }
public GoodContentVo selectAllByCno(Long member_no, Long content_no) { GoodContentVo vo = goodContentDao.selectVoCnoMno(member_no, content_no); return vo; }