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)); }