|
@@ -5,6 +5,7 @@ import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayDeliveryDelayJob;
|
|
|
import com.style24.batch.biz.job.naverpay.TsbNaverPayOrderDecisionJob;
|
|
import com.style24.batch.biz.job.naverpay.TsbNaverPayOrderDecisionJob;
|
|
|
import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCancelCompleteJob;
|
|
import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCancelCompleteJob;
|
|
|
import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCancelReqJob;
|
|
import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCancelReqJob;
|
|
@@ -54,6 +55,9 @@ public class TsbNaverPayTask {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsbNaverPayOrderDecisionJob naverPayOrderDecisionJob;
|
|
private TsbNaverPayOrderDecisionJob naverPayOrderDecisionJob;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TsbNaverPayDeliveryDelayJob naverPayDeliveryDelayJob;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 네이버페이 주문형 배치 실행
|
|
* 네이버페이 주문형 배치 실행
|
|
|
*
|
|
*
|
|
@@ -232,4 +236,18 @@ public class TsbNaverPayTask {
|
|
|
public void orderDecision() throws Exception {
|
|
public void orderDecision() throws Exception {
|
|
|
naverPayOrderDecisionJob.runById("cron.naverPay.order.decision");
|
|
naverPayOrderDecisionJob.runById("cron.naverPay.order.decision");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 네이버페이 주문형 발송 지연 송신
|
|
|
|
|
+ *
|
|
|
|
|
+ * @throws Exception
|
|
|
|
|
+ * @author card007
|
|
|
|
|
+ * @since 2021. 10. 12
|
|
|
|
|
+ */
|
|
|
|
|
+ // @Scheduled(cron = "${cron.naverPay.send.delivery.delay}")
|
|
|
|
|
+ @Scheduled(fixedDelay = 3500000)
|
|
|
|
|
+ @Async
|
|
|
|
|
+ public void deliveryDelay() throws Exception {
|
|
|
|
|
+ naverPayDeliveryDelayJob.runById("cron.naverPay.send.delivery.delay");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|