Skip to content

Commit

Permalink
Fix: 과릿 1.1.4 (#322)
Browse files Browse the repository at this point in the history
* Fix: Batch 중복 실행 방지하기 위한 임시 로직 추가 #318

* Fix: Batch 실행 시 적용되는 쿼리 수정 #318
  • Loading branch information
dl-00-e8 authored Nov 15, 2023
1 parent 430f9ad commit a6ee683
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public List<BatchNotificationDto> findAllByDate(List<Long> lessonIdList) {
.leftJoin(lecture).on(lecture.lectureId.eq(lesson.lecture.lectureId))
.leftJoin(memberAndLecture).on(memberAndLecture.lecture.lectureId.eq(lecture.lectureId))
.leftJoin(member).on(memberAndLecture.member.memberId.eq(member.memberId))
.where(lesson.lessonId.in(lessonIdList), member.token.isNotNull())
.where(lesson.lessonId.in(lessonIdList), member.token.isNotNull(), memberAndLecture.isTeacher.eq(Boolean.TRUE))
.transform(groupBy(memberAndLecture.member.memberId)
.list(Projections.constructor(BatchNotificationDto.class, memberAndLecture.member.memberId, member.token,
list(Projections.constructor(BatchLessonDto.class, lecture.name, lesson.date, lesson.startTime, lesson.endTime)))));
Expand Down

0 comments on commit a6ee683

Please sign in to comment.