@Override public void commissionGoKingManagerClub( int clubNo, SocialPerson originPerson, SocialPerson nwPerson) { // memberDao.deleteClubKingManger(clubNo); memberDao.addClubManager(new ClubManager(clubNo, originPerson)); memberDao.deleteClubManager(clubNo, nwPerson.getEmail()); memberDao.addKingManager(new ClubKingManager(clubNo, nwPerson)); }
@Override public void removeClub(int clubNo, int comNo, boolean forcingRemove) { // if (clubDao.readClub(clubNo) == null) { throw NamooClubExceptionFactory.createRuntime("존재하지 않는 클럽입니다."); } if (forcingRemove) { memberDao.deleteAllClubMember(clubNo); memberDao.deleteAllClubManager(clubNo); memberDao.deleteClubKingManger(clubNo); clubDao.deleteClub(clubNo); } else { throw NamooClubExceptionFactory.createRuntime("멤버부터 탈퇴시키세요."); } }