From ccce1e8ae434a58e0d2930ea9e312e799c8b104b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=98=84=EA=B2=BD?= Date: Fri, 13 Oct 2023 12:57:25 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=B8=EB=AF=B8=EB=82=98=20=EC=B6=9C?= =?UTF-8?q?=EC=84=9D=20=EC=A0=84=20->=20=EA=B2=B0=EC=84=9D=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=BF=BC=EB=A6=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=8F=20@Transactional=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/seminar/application/SeminarAttendanceService.java | 3 ++- .../domain/seminar/dao/SeminarAttendanceRepository.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/keeper/homepage/domain/seminar/application/SeminarAttendanceService.java b/src/main/java/com/keeper/homepage/domain/seminar/application/SeminarAttendanceService.java index a191717b1..1a58b7497 100644 --- a/src/main/java/com/keeper/homepage/domain/seminar/application/SeminarAttendanceService.java +++ b/src/main/java/com/keeper/homepage/domain/seminar/application/SeminarAttendanceService.java @@ -109,7 +109,8 @@ public void changeStatus(long attendanceId, SeminarAttendanceStatusType statusTy seminarAttendance.removeExcuse(); } - @Scheduled(cron = "0 0 0 * * ?", zone = "Asia/Seoul") // 매일 자정에 실행 + @Scheduled(cron = "0 50 23 * * ?", zone = "Asia/Seoul") // 매일 23시 50분에 실행 + @Transactional public void changeAllBeforeAttendanceToAbsence() { attendanceRepository.updateAllBeforeAttendanceToAbsence(); } diff --git a/src/main/java/com/keeper/homepage/domain/seminar/dao/SeminarAttendanceRepository.java b/src/main/java/com/keeper/homepage/domain/seminar/dao/SeminarAttendanceRepository.java index 801a35e56..589561ac3 100644 --- a/src/main/java/com/keeper/homepage/domain/seminar/dao/SeminarAttendanceRepository.java +++ b/src/main/java/com/keeper/homepage/domain/seminar/dao/SeminarAttendanceRepository.java @@ -20,7 +20,8 @@ public interface SeminarAttendanceRepository extends JpaRepository