Skip to content

Commit 7983042

Browse files
authored
hotfix: 쿼리 수정
hotfix: 쿼리 수정
2 parents 97391f0 + 7d43ae2 commit 7983042

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/ssu/eatssu/domain/partnership/persistence/PartnershipRepository.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public interface PartnershipRepository extends JpaRepository<Partnership, Long>
2323
or pd = :department
2424
or (pc is null and pd is null)
2525
)
26-
and p.startDate >= current_date - 7
2726
and (p.endDate is null or p.endDate >= current_date)
2827
""")
2928
List<PartnershipRestaurant> findRestaurantsWithMyPartnerships(

src/main/java/ssu/eatssu/domain/partnership/persistence/PartnershipRestaurantRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public interface PartnershipRestaurantRepository extends JpaRepository<Partnersh
1212
LEFT JOIN FETCH pr.partnerships p
1313
LEFT JOIN FETCH p.partnershipCollege
1414
LEFT JOIN FETCH p.partnershipDepartment
15-
WHERE p.startDate >= current_date - 7 and (p.endDate is null or p.endDate >= CURRENT_DATE)""")
15+
WHERE p.endDate is null or p.endDate >= CURRENT_DATE""")
1616
List<PartnershipRestaurant> findAllWithDetails();
1717
}

0 commit comments

Comments
 (0)