|
@@ -5,9 +5,11 @@ 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.dao.TsbGiftcardDao;
|
|
|
import com.style24.batch.biz.job.marketing.TsbAutoBuyConfirmJob;
|
|
import com.style24.batch.biz.job.marketing.TsbAutoBuyConfirmJob;
|
|
|
import com.style24.batch.biz.job.marketing.TsbBirthdayCouponNoticeJob;
|
|
import com.style24.batch.biz.job.marketing.TsbBirthdayCouponNoticeJob;
|
|
|
import com.style24.batch.biz.job.marketing.TsbCartExpirationJob;
|
|
import com.style24.batch.biz.job.marketing.TsbCartExpirationJob;
|
|
|
|
|
+import com.style24.batch.biz.job.marketing.TsbExpireGiftcardJob;
|
|
|
import com.style24.batch.biz.job.marketing.TsbExpirePointJob;
|
|
import com.style24.batch.biz.job.marketing.TsbExpirePointJob;
|
|
|
import com.style24.batch.biz.job.marketing.TsbReviewGuideJob;
|
|
import com.style24.batch.biz.job.marketing.TsbReviewGuideJob;
|
|
|
|
|
|
|
@@ -37,6 +39,9 @@ public class TsbMarketingTask {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsbReviewGuideJob reviewGuideJob;
|
|
private TsbReviewGuideJob reviewGuideJob;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TsbExpireGiftcardJob expireGiftcardJob;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 자동구매확정 포인트 지급
|
|
* 자동구매확정 포인트 지급
|
|
@@ -105,5 +110,19 @@ public class TsbMarketingTask {
|
|
|
public void sendReviewRegisterGuide() throws Exception {
|
|
public void sendReviewRegisterGuide() throws Exception {
|
|
|
reviewGuideJob.runById("cron.marketing.review.guide");
|
|
reviewGuideJob.runById("cron.marketing.review.guide");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 상품권 소멸처리
|
|
|
|
|
+ *
|
|
|
|
|
+ * @throws Exception - 예외처리
|
|
|
|
|
+ * @author sowon
|
|
|
|
|
+ * @since 2021. 05. 20
|
|
|
|
|
+ */
|
|
|
|
|
+ //@Scheduled(cron = "${cron.marketing.expire.giftcard}")
|
|
|
|
|
+ //@Scheduled(fixedDelay=360000)
|
|
|
|
|
+ @Async
|
|
|
|
|
+ public void expireGiftcardJob() throws Exception {
|
|
|
|
|
+ expireGiftcardJob.runById("cron.marketing.expire.giftcard");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|