Skip to content

Commit

Permalink
[POT-80][Fix] 필터링 시 roadName 이 비어있거나 빈 칸만 있을 때의 예외 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunsik committed Oct 22, 2024
1 parent f32d09f commit cfebed6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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));
}

Expand Down

0 comments on commit cfebed6

Please sign in to comment.