Skip to content

Commit 345b667

Browse files
authored
[fix] dev 최신 반영 - 챗봇 STEP SQL 추가
2 parents f388fa1 + 33782a5 commit 345b667

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/back/domain/cocktail/repository/CocktailRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ List<Cocktail> findByCommentsCountLessThanOrderByCommentsCountDesc(
6868
"WHERE (:keyword IS NULL OR :keyword = '' OR " +
6969
" LOWER(c.cocktailName) LIKE LOWER(CONCAT('%', :keyword, '%')) OR " +
7070
" LOWER(c.cocktailNameKo) LIKE LOWER(CONCAT('%', :keyword, '%')) OR " +
71-
" LOWER(c.ingredient) LIKE LOWER(CONCAT('%', :keyword, '%')))" +
71+
" LOWER(c.ingredient) LIKE LOWER(CONCAT('%', :keyword, '%')) OR " +
72+
" LOWER(c.cocktailStory) LIKE LOWER(CONCAT('%', :keyword, '%')))" +
7273
" AND (:strengths IS NULL OR c.alcoholStrength IN :strengths) " + // 알코올 도수 필터를 담당
7374
" AND (:types IS NULL OR c.cocktailType IN :types) " + // 칵테일 타입 필터를 담당
7475
" AND (:bases IS NULL OR c.alcoholBaseType IN :bases) ") // 알코올 베이스 필터를 담당

0 commit comments

Comments
 (0)