From c633c29c3aee49733d6490bd2ed47161468a6556 Mon Sep 17 00:00:00 2001 From: rlarlgnszx Date: Thu, 16 May 2024 20:15:29 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20#27=20-=20Product=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=20=EA=B8=B0=EB=8A=A5=20IgnoreCase=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/app/kream/repository/ProductRepository.java | 4 ++-- src/main/java/com/app/kream/service/ProductService.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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())