|
@@ -1,11 +1,22 @@
|
|
|
package com.style24.batch.biz.task;
|
|
package com.style24.batch.biz.task;
|
|
|
|
|
|
|
|
-import com.style24.batch.biz.job.naverpay.*;
|
|
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+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.TsbNaverPayOrderDecisionJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCancelCompleteJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCancelReqJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderCompleteJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderConfirmJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderExchangeReqJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvOrderReturnReqJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPayRecvWdInvoiceNoJob;
|
|
|
|
|
+import com.style24.batch.biz.job.naverpay.TsbNaverPaySendReadyDeliveryJob;
|
|
|
|
|
+
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* 네이버페이 주문형 Task
|
|
* 네이버페이 주문형 Task
|
|
@@ -40,6 +51,9 @@ public class TsbNaverPayTask {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsbNaverPayRecvWdInvoiceNoJob recvWdInvoiceNoJob;
|
|
private TsbNaverPayRecvWdInvoiceNoJob recvWdInvoiceNoJob;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TsbNaverPayOrderDecisionJob naverPayOrderDecisionJob;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 네이버페이 주문형 배치 실행
|
|
* 네이버페이 주문형 배치 실행
|
|
|
*
|
|
*
|
|
@@ -92,4 +106,18 @@ public class TsbNaverPayTask {
|
|
|
|
|
|
|
|
// // 교환 반려 주문 정보 송신 > 관리자 교환반려 버튼 클릭시 송부로 변경 (완료)
|
|
// // 교환 반려 주문 정보 송신 > 관리자 교환반려 버튼 클릭시 송부로 변경 (완료)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 네이버페이 결제형 구매확정
|
|
|
|
|
+ *
|
|
|
|
|
+ * @throws Exception
|
|
|
|
|
+ * @author card007
|
|
|
|
|
+ * @since 2021. 09. 23
|
|
|
|
|
+ */
|
|
|
|
|
+ // @Scheduled(cron = "${cron.naverPay.order.decision}")
|
|
|
|
|
+ @Scheduled(fixedDelay = 3500000)
|
|
|
|
|
+ @Async
|
|
|
|
|
+ public void orderDecision() throws Exception {
|
|
|
|
|
+ naverPayOrderDecisionJob.runById("cron.naverPay.order.decision");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|