From 4f32dbb17c48a230df59391505433c1b7afccf4b Mon Sep 17 00:00:00 2001 From: LDY Date: Fri, 19 Jul 2024 12:04:15 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EC=A0=95=EB=A0=AC=20=ED=82=A4?= =?UTF-8?q?=EC=9B=8C=EB=93=9C=EA=B0=80=20=EC=97=86=EC=9D=84=20=EB=95=8C=20?= =?UTF-8?q?=EC=9E=98=EB=AA=BB=20=EB=8F=99=EC=9E=91=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/directory/repository/DirectoryRepositoryImpl.java | 2 +- .../com/goat/server/review/repository/ReviewRepositoryImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/goat/server/directory/repository/DirectoryRepositoryImpl.java b/src/main/java/com/goat/server/directory/repository/DirectoryRepositoryImpl.java index 8a0866e..f01c09e 100644 --- a/src/main/java/com/goat/server/directory/repository/DirectoryRepositoryImpl.java +++ b/src/main/java/com/goat/server/directory/repository/DirectoryRepositoryImpl.java @@ -37,7 +37,7 @@ public List findAllDirectoryResponseBySortAndSearch( //search가 null이면 parentDirectoryId로 검색, 아니면 search로 검색 - search 존재 -> 전체 검색 private BooleanExpression isSearchExpression(Long parentDirectoryId, String search) { - if (StringUtils.hasLength(search)) { + if (!StringUtils.hasLength(search)) { return parentDirectoryFindExpression(parentDirectoryId); } else { return directory.title.contains(search); diff --git a/src/main/java/com/goat/server/review/repository/ReviewRepositoryImpl.java b/src/main/java/com/goat/server/review/repository/ReviewRepositoryImpl.java index afed6d5..1718140 100644 --- a/src/main/java/com/goat/server/review/repository/ReviewRepositoryImpl.java +++ b/src/main/java/com/goat/server/review/repository/ReviewRepositoryImpl.java @@ -37,7 +37,7 @@ public List findAllReviewSimpleResponseBySortAndSearch( //search가 null이면 parentDirectoryId로 검색, 아니면 search로 검색 - search 존재 -> 전체 검색 private BooleanExpression searchExpression(Long parentDirectoryId, String search) { - if (StringUtils.hasLength(search)) { + if (!StringUtils.hasLength(search)) { return review.directory.id.eq(parentDirectoryId); } else { return review.title.contains(search);