Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public GoodContentVo selectMno(Long member_no, Long content_no) {
   GoodContentVo goodContentVo = goodContentDao.selectVoCnoMno(content_no, member_no);
   return goodContentVo;
 }
Esempio n. 4
0
 public List<GoodContentVo> selectCntNo(Long content_no) {
   List<GoodContentVo> list = goodContentDao.selectAllByCno(content_no);
   return list;
 }
Esempio n. 5
0
 public void selectCntNo(Model model, Long content_no) {
   List<GoodContentVo> list = goodContentDao.selectAllByCno(content_no);
   model.addAttribute("goodContent", list.size());
   return;
 }
Esempio n. 6
0
 public GoodContentVo selectAllByCno(Long member_no, Long content_no) {
   GoodContentVo vo = goodContentDao.selectVoCnoMno(member_no, content_no);
   return vo;
 }