Skip to content

Commit

Permalink
Merge pull request #293 from OutDecision/issue/288
Browse files Browse the repository at this point in the history
🎨 [UPDATE]: post 레포지토리에 추가
  • Loading branch information
sye1101 authored Jun 3, 2024
2 parents f165975 + 656e08e commit 79eef2a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.Query;

import java.util.Date;
import java.util.List;

public interface PostRepository extends JpaRepository<Post, Long> {
Expand All @@ -23,4 +24,5 @@ public interface PostRepository extends JpaRepository<Post, Long> {
List<Post> findByHotTrue(Pageable p);
List<Post> findTop6ByStatusOrderByDeadlineDesc(Status status, Pageable p);
List<Post> findTop6ByStatusOrderByDeadlineAsc(Status status, Pageable p);
List<Post> findByStatusAndDeadlineBefore(Status status, Date currentDate);
}

0 comments on commit 79eef2a

Please sign in to comment.