Skip to content

Commit 33782a5

Browse files
authored
[fix] 챗봇 - 단계별 추가 input 단계 SQL 추가
[fix] 챗봇 - 단계별 추가 input 단계 SQL 추가
2 parents 8483832 + c3fd459 commit 33782a5

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)