Skip to content

Commit

Permalink
fix: 위도 경도 없을 경우 전체 조회 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Dec 15, 2024
1 parent adb0aaf commit 85df582
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ List<Course> recommendCourses(
" c.description ILIKE CONCAT('%', :keyword, '%') OR \n" +
" c.city ILIKE CONCAT('%', :keyword, '%') OR \n" +
" c.district ILIKE CONCAT('%', :keyword, '%')) \n" +
" AND (:latitude IS NOT NULL AND :longitude IS NOT NULL AND \n" +
" AND (:latitude IS NULL OR :longitude IS NULL OR \n" +
" ST_DWithin(c.start_point, ST_MakePoint(:longitude, :latitude)::geography, :radius)) \n" +
" AND (:distance IS NULL OR \n" +
" (:distance = 'UNDER_3KM' AND c.distance < 3 OR \n" +
Expand Down

0 comments on commit 85df582

Please sign in to comment.