Skip to content

Commit

Permalink
fix : is_notice=1 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Choon0414 committed Dec 15, 2024
1 parent ecefbaa commit c0570dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ default Article getNextArticle(Board board, Article article) {
String getTitleById(@Param("id") Integer id);

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

0 comments on commit c0570dc

Please sign in to comment.