[FO] 은행자동이체내역 등록 완료 후 해당 월로 이동되도록 수정

This commit is contained in:
kangsunlee
2025-07-23 17:07:58 +09:00
parent 8954357898
commit dd67a2f8c5
3 changed files with 5 additions and 6 deletions

View File

@@ -2,13 +2,11 @@ package app.module.admin.usecase.schedule.autoSchedules.adapters.web;
import app.module.admin.usecase.batchCheck.ports.BatchCheckPortIn; import app.module.admin.usecase.batchCheck.ports.BatchCheckPortIn;
import app.module.admin.usecase.batchCheck.ports.application.domain.BatchCheckInCmd; import app.module.admin.usecase.batchCheck.ports.application.domain.BatchCheckInCmd;
import app.module.admin.usecase.batchLog.ports.BatchLogPortIn;
import app.module.admin.usecase.batchLog.ports.application.domain.BatchLogType; import app.module.admin.usecase.batchLog.ports.application.domain.BatchLogType;
import app.module.admin.usecase.schedule.autoSchedules.ports.AutoSchedulesPortIn; import app.module.admin.usecase.schedule.autoSchedules.ports.AutoSchedulesPortIn;
import java.util.Date; import java.util.Date;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@@ -31,6 +29,7 @@ public class AutoSchedulesController {
} }
/** /**
* 월별입력상태 등록 * 월별입력상태 등록
* 매 월 1일 0초 마다 실행되는 스케줄러 * 매 월 1일 0초 마다 실행되는 스케줄러
*/ */
@@ -67,12 +66,12 @@ public class AutoSchedulesController {
* 문자자동발송 등록 * 문자자동발송 등록
* 매일 오후 5시 마다 실행되는 스케줄러 * 매일 오후 5시 마다 실행되는 스케줄러
*/ */
@Scheduled(cron = "0 0 17 * * ?") @Scheduled(cron = "0 0 18 * * ?")
public void fetchSmsAutoSend() { public void fetchSmsAutoSend() {
String methodName = "fetchSmsAutoSend"; String methodName = "fetchSmsAutoSend";
if (!schedulerEnabled) { if (!schedulerEnabled) {
log.info("{} 는 local 환경에서는 실행되지 않습니다. (현재: {})", methodName, activeProfiles); log.info("{} 는 local 환경에서는 실행되지 않습니다 2. (현재: {})", methodName, activeProfiles);
return; return;
} }

View File

@@ -550,7 +550,7 @@
if (rstData.code === 'SUCCESS') { if (rstData.code === 'SUCCESS') {
ajaxUtil._alert('등록이 완료되었습니다.', null, function () { ajaxUtil._alert('등록이 완료되었습니다.', null, function () {
location.href = '/info/bank'; location.href = '/info/bank/' + ENV.data.currentMonth;
}); });
} else if (rstData.code === 'ERROR') { } else if (rstData.code === 'ERROR') {
ajaxUtil._alert('잠시 뒤에 다시 시도해 주세요.', null); ajaxUtil._alert('잠시 뒤에 다시 시도해 주세요.', null);

View File

@@ -529,7 +529,7 @@
if (rstData.code === 'SUCCESS') { if (rstData.code === 'SUCCESS') {
ajaxUtil._alert('등록이 완료되었습니다.', null, function () { ajaxUtil._alert('등록이 완료되었습니다.', null, function () {
location.href = '/info/bank'; location.href = '/info/bank/' + ENV.data.currentMonth;
}); });
} else if (rstData.code === 'ERROR') { } else if (rstData.code === 'ERROR') {
ajaxUtil._alert('잠시 뒤에 다시 시도해 주세요.', null); ajaxUtil._alert('잠시 뒤에 다시 시도해 주세요.', null);