Skip to content

Commit

Permalink
Merge pull request #97 from UMC-ON/feat/marketpostnscrap
Browse files Browse the repository at this point in the history
fix: 물품거래글을 도시 키워드로도 검색 가능하도록 수정
  • Loading branch information
sanggae4133 authored Nov 4, 2024
2 parents a317151 + 6970f44 commit 6de3da7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Page<MarketPost> findFilteredMarketPosts(
// 검색: 국가와 물품에 대한 제목 또는 내용을 검색하는 메서드
@Query("SELECT mp FROM MarketPost mp WHERE " +
"mp.currentCountry LIKE %:keyword% OR " +
"mp.currentLocation LIKE %:keyword% OR " + // 도시로도 글이 검색되도록 추가
"mp.title LIKE %:keyword% OR " +
"mp.content LIKE %:keyword% " +
"ORDER BY mp.createdAt DESC")
Expand Down

0 comments on commit 6de3da7

Please sign in to comment.