From fb5ffa58310eb4aa789b953598e3c65b1058ebda Mon Sep 17 00:00:00 2001 From: Chan531 Date: Fri, 19 Jul 2024 17:26:47 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20=ED=83=80=EC=9E=84=EB=9D=BC=EC=9D=B8?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8C=20=EB=A1=9C=EC=A7=81=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tiki/server/timeblock/repository/TimeBlockRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/tiki/server/timeblock/repository/TimeBlockRepository.java b/src/main/java/com/tiki/server/timeblock/repository/TimeBlockRepository.java index 2d600d72..a4b03525 100644 --- a/src/main/java/com/tiki/server/timeblock/repository/TimeBlockRepository.java +++ b/src/main/java/com/tiki/server/timeblock/repository/TimeBlockRepository.java @@ -10,7 +10,8 @@ public interface TimeBlockRepository extends JpaRepository { @Query(value = "select * from time_block " - + "where team_id = :teamId and accessible_position = :position and to_char(start_date, 'YYYY-MM') = :date " + + "where team_id = :teamId and accessible_position = :position and " + + "(to_char(start_date, 'YYYY-MM') = :date or to_char(end_date, 'YYYY-MM') = :date) " + "order by start_date asc", nativeQuery = true) List findByTeamAndAccessiblePositionAndDate(long teamId, String position, String date); }