Skip to content

Commit

Permalink
Fix: 과릿 1.1.3 (#315)
Browse files Browse the repository at this point in the history
* Fix: 과릿 1.1.3 (#314)
  • Loading branch information
dl-00-e8 authored Nov 14, 2023
1 parent 3f53ce9 commit 7f226b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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))
.where(lesson.lessonId.in(lessonIdList), member.token.isNotNull())
.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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public RepeatStatus execute(StepContribution contribution, ChunkContext chunkCon
String temp = lessonDto.getStartTime().format(DateTimeFormatter.ofPattern("HH:mm")) + " ~ " + lessonDto.getEndTime().format(DateTimeFormatter.ofPattern("HH:mm")) + " " + lessonDto.getName() + "\n";
body.append(temp);
}
// 마지막 개행문자 제거
// 마지막 개행 문자 제거
if(body.length() > 0 && body.charAt(body.length() - 1) == '\n') {
body.setLength(body.length() - 1);
}
Expand Down

0 comments on commit 7f226b9

Please sign in to comment.