diff --git a/src/main/java/com/app/kream/repository/ProductRepository.java b/src/main/java/com/app/kream/repository/ProductRepository.java index 3caa6ae..fe02e3d 100644 --- a/src/main/java/com/app/kream/repository/ProductRepository.java +++ b/src/main/java/com/app/kream/repository/ProductRepository.java @@ -8,6 +8,6 @@ @Repository public interface ProductRepository extends JpaRepository { - List findByBrandTitleContainingOrTitleContainingOrEngTitleContaining(String findName1,String findName2,String findName3); - List findByEngTitleContainingOrTitleContainingOrderByIdDesc(String findName1,String findName2); + List findByBrandTitleContainingIgnoreCaseOrTitleContainingIgnoreCaseOrEngTitleContainingIgnoreCase(String findName1,String findName2,String findName3); + List findByEngTitleContainingIgnoreCaseOrTitleContainingIgnoreCaseOrderByIdDesc(String findName1,String findName2); } diff --git a/src/main/java/com/app/kream/service/ProductService.java b/src/main/java/com/app/kream/service/ProductService.java index e37f34c..de95152 100644 --- a/src/main/java/com/app/kream/service/ProductService.java +++ b/src/main/java/com/app/kream/service/ProductService.java @@ -86,11 +86,11 @@ public SearchProductResponse findSearchProduct( String findName ) { return SearchProductResponse.of( - productRepository.findByBrandTitleContainingOrTitleContainingOrEngTitleContaining(findName, findName, findName) + productRepository.findByBrandTitleContainingIgnoreCaseOrTitleContainingIgnoreCaseOrEngTitleContainingIgnoreCase(findName, findName, findName) .stream() .map(SearchFindProductResponse::of) .collect(Collectors.toList()), - productRepository.findByEngTitleContainingOrTitleContainingOrderByIdDesc(findName,findName) + productRepository.findByEngTitleContainingIgnoreCaseOrTitleContainingIgnoreCaseOrderByIdDesc(findName,findName) .stream() .map(RelateRecommendProductResponse::of) .collect(Collectors.toList())