From 656e08eba07d4b212899905c9269c768a96a8d5d Mon Sep 17 00:00:00 2001 From: sye1101 Date: Mon, 3 Jun 2024 21:37:05 +0900 Subject: [PATCH] =?UTF-8?q?[UPDATE]:=20post=20=EB=A0=88=ED=8F=AC=EC=A7=80?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OutDecision/domain/post/repository/PostRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/KGUcapstone/OutDecision/domain/post/repository/PostRepository.java b/src/main/java/KGUcapstone/OutDecision/domain/post/repository/PostRepository.java index 9964443..4323665 100644 --- a/src/main/java/KGUcapstone/OutDecision/domain/post/repository/PostRepository.java +++ b/src/main/java/KGUcapstone/OutDecision/domain/post/repository/PostRepository.java @@ -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 { @@ -23,4 +24,5 @@ public interface PostRepository extends JpaRepository { List findByHotTrue(Pageable p); List findTop6ByStatusOrderByDeadlineDesc(Status status, Pageable p); List findTop6ByStatusOrderByDeadlineAsc(Status status, Pageable p); + List findByStatusAndDeadlineBefore(Status status, Date currentDate); }