Skip to content

Commit

Permalink
fix: @param추가 (#327)
Browse files Browse the repository at this point in the history
Co-authored-by: HyeonsuLee <leehyeonsu4888@naver.com>
(cherry picked from commit fbc51c9)
  • Loading branch information
20HyeonsuLee authored and Choi-JJunho committed May 9, 2024
1 parent b31487a commit 93e1129
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;

import in.koreatech.koin.domain.shop.model.EventArticle;

Expand All @@ -19,5 +20,5 @@ SELECT COUNT(e) > 0 FROM EventArticle e
WHERE :now BETWEEN e.startDate AND e.endDate
AND e.shop.id = :shopId
""")
Boolean isEvent(Long shopId, LocalDate now);
Boolean isEvent(@Param("shopId") Long shopId, @Param("now") LocalDate now);
}

0 comments on commit 93e1129

Please sign in to comment.