Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
주수현
2025-07-22 09:31:29 +09:00

View File

@@ -35,9 +35,13 @@ public class AutoSchedulesController {
* 월별입력상태 등록 * 월별입력상태 등록
* 매 월 1일 0초 마다 실행되는 스케줄러 * 매 월 1일 0초 마다 실행되는 스케줄러
*/ */
//@Scheduled(cron = "0 0 0 1 * *") @Scheduled(cron = "0 0 0 1 * *")
@Scheduled(cron = "0 0 * * * *")
public void fetchMonthlyStatus() { public void fetchMonthlyStatus() {
if ("dev".equals(activeProfiles)) {
log.info("fetchMonthlyStatus 는 dev 환경에서만 실행됩니다. (현재: {})", activeProfiles);
return;
}
String lockKey = "fetchMonthlyStatus_" + java.time.LocalDate.now(); String lockKey = "fetchMonthlyStatus_" + java.time.LocalDate.now();
try { try {
String host = java.net.InetAddress.getLocalHost().getHostName(); String host = java.net.InetAddress.getLocalHost().getHostName();
@@ -106,9 +110,13 @@ public class AutoSchedulesController {
* 월초이월금 계산하여 등록 * 월초이월금 계산하여 등록
* 매월 16일 0시 0초에 실행되는 스케줄러 * 매월 16일 0시 0초에 실행되는 스케줄러
*/ */
// @Scheduled(cron = "0 0 0 16 * *") @Scheduled(cron = "0 0 0 16 * *")
@Scheduled(cron = "0 0 * * * *")
public void fetchMonthlyCarryOver() { public void fetchMonthlyCarryOver() {
if ("dev".equals(activeProfiles)) {
log.info("fetchMonthlyCarryOver 는 dev 환경에서만 실행됩니다. (현재: {})", activeProfiles);
return;
}
String lockKey = "fetchMonthlyCarryOver_" + java.time.LocalDate.now(); String lockKey = "fetchMonthlyCarryOver_" + java.time.LocalDate.now();
try { try {
String host = java.net.InetAddress.getLocalHost().getHostName(); String host = java.net.InetAddress.getLocalHost().getHostName();