Skip to content

Commit

Permalink
[#8]✨Feat: 게시글 작성자 ID로 투자 조회
Browse files Browse the repository at this point in the history
  • Loading branch information
sumin220 committed Nov 23, 2024
1 parent 3a401ad commit 1ddbc42
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ public interface InvestmentRepository extends JpaRepository<Investment, Long> {
Optional<Investment> findByBoardAndMember(Board board, Member member);

List<Investment> findByMember(Member member);

List<Investment> findByBoard(Board board);

// 게시글 작성자 ID로 투자 조회
List<Investment> findAllByBoardWriterId(Long writerId);
}

0 comments on commit 1ddbc42

Please sign in to comment.