Skip to content

Commit

Permalink
fix: 떡국 완성시간 기준 정렬 로직 추가(완성된 떡국)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Feb 9, 2024
1 parent 46e2b9a commit 316627a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface TteokgukRepository extends JpaRepository<Tteokguk, Long> {
@Query("SELECT t FROM Tteokguk t WHERE t.access = true and t.member.deleted = false and t.completion = false ORDER BY t.id DESC")
List<Tteokguk> findNewTteokguks(Pageable pageable);

@Query("SELECT t FROM Tteokguk t WHERE t.access = true and t.member.deleted = false and t.completion = true ORDER BY t.id DESC")
@Query("SELECT t FROM Tteokguk t WHERE t.access = true and t.member.deleted = false and t.completion = true ORDER BY t.updatedDate DESC")
List<Tteokguk> findCompletionTteokguks(Pageable pageable);

@Query(value = "SELECT t FROM Tteokguk t WHERE t.deleted = false AND t.access = true ORDER BY RAND() LIMIT 1")
Expand Down

0 comments on commit 316627a

Please sign in to comment.