Skip to content

Commit

Permalink
fix : 커밋 누락 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouon committed Oct 12, 2024
1 parent 574adb7 commit 877e883
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ public interface MemberstudyroomRepository extends JpaRepository<MemberStudyroom
@Query("SELECT ms.role FROM MemberStudyroom ms WHERE ms.studyroom.studyroomId = :studyroomId AND ms.member.memberId = :memberId")
Optional<MemberRole> findRoleByMemberIdAndStudyroomId(long studyroomId, long memberId);

@Query("SELECT ms.role FROM MemberStudyroom ms WHERE ms.studyroom.studyroomId = :studyroomId AND ms.member.memberId = :memberId AND ms.status = :status")
Optional<MemberRole> findRoleByMemberIdAndStudyroomIdAndRole(long studyroomId, long memberId, BaseStatus status);
@Modifying
@Query("UPDATE MemberStudyroom ms SET ms.status = 'DELETE' WHERE ms.studyroom.studyroomId = :studyroomId")
int deleteMemberStudyroom(long studyroomId);
@Query("UPDATE MemberStudyroom ms SET ms.status = :status WHERE ms.studyroom.studyroomId = :studyroomId")
void deleteMemberStudyroom(long studyroomId, BaseStatus status);

Optional<MemberStudyroom> findByMember_MemberIdAndStudyroom_StudyroomIdAndStatus(Long memberId, Long studyroomId, BaseStatus status);
@Query("SELECT ms " +
Expand Down

0 comments on commit 877e883

Please sign in to comment.