Skip to content

Commit

Permalink
fix : 조회 테이블 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Choon0414 committed Dec 15, 2024
1 parent f9b0f38 commit ecefbaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ default Article getNextArticle(Board board, Article article) {
@Query("SELECT a.title FROM Article a WHERE a.id = :id")
String getTitleById(@Param("id") Integer id);

@Query(value = "SELECT * FROM koreatech_articles a "
@Query(value = "SELECT * FROM new_articles a "
+ "WHERE a.title REGEXP '통학버스|등교버스|셔틀버스|하교버스' "
+ "ORDER BY a.created_at DESC LIMIT 5", nativeQuery = true)
List<Article> findBusArticlesTop5OrderByCreatedAtDesc();
Expand Down

0 comments on commit ecefbaa

Please sign in to comment.