From cfebed62d8992d8bbda17acfb383cb6bd5f29691 Mon Sep 17 00:00:00 2001 From: jjunsik Date: Tue, 22 Oct 2024 22:37:37 +0900 Subject: [PATCH] =?UTF-8?q?[POT-80][Fix]=20=ED=95=84=ED=84=B0=EB=A7=81=20?= =?UTF-8?q?=EC=8B=9C=20roadName=20=EC=9D=B4=20=EB=B9=84=EC=96=B4=EC=9E=88?= =?UTF-8?q?=EA=B1=B0=EB=82=98=20=EB=B9=88=20=EC=B9=B8=EB=A7=8C=20=EC=9E=88?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=EC=9D=98=20=EC=98=88=EC=99=B8=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/pothole/repository/PotholeQueryDslRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pothole-core/src/main/java/pothole_solution/core/domain/pothole/repository/PotholeQueryDslRepository.java b/pothole-core/src/main/java/pothole_solution/core/domain/pothole/repository/PotholeQueryDslRepository.java index 629b68f..5516d89 100644 --- a/pothole-core/src/main/java/pothole_solution/core/domain/pothole/repository/PotholeQueryDslRepository.java +++ b/pothole-core/src/main/java/pothole_solution/core/domain/pothole/repository/PotholeQueryDslRepository.java @@ -4,9 +4,9 @@ import com.querydsl.jpa.impl.JPAQueryFactory; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Repository; -import pothole_solution.core.domain.pothole.entity.Progress; import pothole_solution.core.domain.pothole.dto.PotFltPotMngrServDto; import pothole_solution.core.domain.pothole.entity.Pothole; +import pothole_solution.core.domain.pothole.entity.Progress; import java.util.List; @@ -63,7 +63,7 @@ private BooleanBuilder getRoadNameFilter(String roadName) { BooleanBuilder booleanBuilder = new BooleanBuilder(); // 도로명 입력 - if (roadName != null) { + if (roadName != null && !roadName.isBlank()) { booleanBuilder.and(pothole.roadName.eq(roadName)); }