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 savePlan(HttpSession session, Long content_no) { MemberVo memberVo = (MemberVo) session.getAttribute("authUser"); PlanVo planVo = new PlanVo(); planVo.setMember_no(memberVo.getMember_no()); planVo.setMemberName(memberVo.getMemberName()); /* planDao.inserttoday(planVo);*/ // 제일 최신것 갖고옴 /* List<PlanVo> planList =planDao.getUserPlan(memberVo.getMember_no()); PlanVo planVo =planList.get(planList.size()-1);*/ // insertContentBox /* ContentBoxVo contentBoxVo = new ContentBoxVo(); contentBoxVo.setPlan_no(planVo.getPlan_no()); contentBoxVo.setContent_no(content_no); contentBoxDao.insert(contentBoxVo);*/ }