Skip to content

Commit

Permalink
[HOTFIX] 타임라인 조회 로직 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan531 committed Jul 19, 2024
1 parent 1d0b71a commit fb5ffa5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
public interface TimeBlockRepository extends JpaRepository<TimeBlock, Long> {

@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<TimeBlock> findByTeamAndAccessiblePositionAndDate(long teamId, String position, String date);
}

0 comments on commit fb5ffa5

Please sign in to comment.