|
@@ -2,9 +2,11 @@ package com.style24.batch.biz.task;
|
|
|
|
|
|
|
|
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.Async;
|
|
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
import com.style24.batch.biz.job.marketing.TsbAutoBuyConfirmJob;
|
|
import com.style24.batch.biz.job.marketing.TsbAutoBuyConfirmJob;
|
|
|
|
|
+import com.style24.batch.biz.job.marketing.TsbExpirePointJob;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
@@ -20,6 +22,9 @@ public class TsbMarketingTask {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsbAutoBuyConfirmJob autoBuyConfirmJob;
|
|
private TsbAutoBuyConfirmJob autoBuyConfirmJob;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TsbExpirePointJob expirePointJob;
|
|
|
/**
|
|
/**
|
|
|
* 자동구매확정 포인트 지급
|
|
* 자동구매확정 포인트 지급
|
|
|
*
|
|
*
|
|
@@ -33,5 +38,19 @@ public class TsbMarketingTask {
|
|
|
public void autoBuyConfirmJob() throws Exception {
|
|
public void autoBuyConfirmJob() throws Exception {
|
|
|
autoBuyConfirmJob.runById("cron.marketing.auto.buy.confirm");
|
|
autoBuyConfirmJob.runById("cron.marketing.auto.buy.confirm");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 포인트 소멸처리
|
|
|
|
|
+ *
|
|
|
|
|
+ * @throws Exception - 예외처리
|
|
|
|
|
+ * @author sowon
|
|
|
|
|
+ * @since 2021. 04. 26
|
|
|
|
|
+ */
|
|
|
|
|
+ //@Scheduled(cron = "${cron.marketing.expire.point}")
|
|
|
|
|
+ //@Scheduled(fixedDelay=360000)
|
|
|
|
|
+ @Async
|
|
|
|
|
+ public void expirePointJob() throws Exception {
|
|
|
|
|
+ expirePointJob.runById("cron.marketing.expire.point");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|