Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import java.util.List;

@Tag(name = "Dispatch Matching", description = "배차 관련 API")
@Tag(name = "배차 관련 API (/api/v1/dispatch)")
@RestController
@RequestMapping("/api/v1/dispatch")
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public interface DispatchRepository extends JpaRepository<Dispatch, Long>,
d.toll_type as tollType
FROM dispatch d
WHERE d.active = true
AND (:statuses IS NULL OR d.status IN (:statuses))
AND (CAST(:statuses AS text[]) IS NULL OR d.status = ANY(CAST(:statuses AS text[])))
ORDER BY distanceInMeters ASC
""", nativeQuery = true)
List<DispatchDistanceProjection> findDispatchesByDistance(
Expand Down