Skip to content

Commit

Permalink
✨ [feat] 태그로 게시글 조회(미리보기) api 정렬기준 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
y2hscmtk committed Aug 3, 2024
1 parent 0257b10 commit 38f8d91
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 0 deletions.
Binary file modified .gradle/8.8/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.8/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public interface ArticleTagRepository extends JpaRepository<ArticleTag,Long> {
void deleteByArticle(Article article);
List<ArticleTag> findByArticle(Article article);
List<ArticleTag> findByTag(Tag tag);

@Query("SELECT at FROM ArticleTag at JOIN at.article a WHERE at.tag = :tag ORDER BY a.createdAt DESC")
Page<ArticleTag> findArticleTagPageByTag(Tag tag, Pageable pageable);

// 태그 이름으로 묶어서 내림차순 추출
Expand Down

0 comments on commit 38f8d91

Please sign in to comment.