Skip to content

Commit

Permalink
Merge pull request #35 from EWHA-THON-E-BUS/develop
Browse files Browse the repository at this point in the history
[배포] 시간표 조회 시 현재 요일 불러오도록 설정 변경
  • Loading branch information
Soyeon-Cha authored Mar 17, 2024
2 parents 96d5a03 + 70afbef commit b64cd3b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,10 @@ public StopTimetable getStopTimetable(Integer stopId){
// 비어 있는 하행 리스트
List<TimeResponseDto> downs = new ArrayList<>();

// 현재 요일 구하기 (월:1, ..., 일:7)
/*
// 현재 요일 구하기 (월:1, ..., 일:7)+
LocalDate today = LocalDate.now();
DayOfWeek dayOfWeek = today.getDayOfWeek();
int dayOfWeekNumber = dayOfWeek.getValue();
*/
int dayOfWeekNumber = 1;

// 주간 상행. 연협행, 한우리행 섞여있고, 시간순으로 정렬해서 조회
List<TimeTableDay> dayUps = timeTableDayRepository.findByIsUpboundOrderByDepartureTimeAsc(Boolean.TRUE);
Expand Down

0 comments on commit b64cd3b

Please sign in to comment.