Skip to content

Commit

Permalink
feat: 날짜 필터링 로직 및 정렬기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
shwnahn committed Feb 8, 2025
1 parent 7842204 commit c9e437b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ List<Scholarship> findByScholarshipType(
// 지원유형 조건
"((s.type = 'TUITION' AND :hasFullTuition = false) " +
"OR (s.type = 'LIVING_DUPLICATE') " +
"OR (s.type = 'LIVING_NO_DUPLICATE' AND :hasScholarship = false)) AND " +
"OR (s.type = 'LIVING_NO_DUPLICATE' AND :hasScholarship = false)) AND" +
// 마감일 조건
"(s.applicationEndDate >= CURRENT_DATE - INTERVAL '4' MONTH)")
"(s.applicationEndDate >= CURRENT_DATE - 120)" +
"ORDER BY s.applicationEndDate DESC")


List<Scholarship> findPossibleScholarships(
@Param("userRegionId") Integer userRegionId,
@Param("userUniversityId") Integer userUniversityId,
Expand Down

0 comments on commit c9e437b

Please sign in to comment.