|
|
@@ -1,17 +1,14 @@
|
|
|
package com.style24.batch.biz.task;
|
|
|
|
|
|
|
|
|
-import com.style24.batch.biz.job.customer.TsbDormantConversionJob;
|
|
|
+import com.style24.batch.biz.job.customer.TsbDormantTransformJob;
|
|
|
import com.style24.batch.biz.job.customer.TsbDormantScheduleJob;
|
|
|
-import com.style24.batch.biz.job.customer.TsbSecedeCustomerJob;
|
|
|
+import com.style24.batch.biz.job.customer.TsbSecedeProcessJob;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
-import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* 회원(고객) Task
|
|
|
@@ -26,10 +23,10 @@ public class TsbCustomerTask {
|
|
|
TsbDormantScheduleJob dormantScheduleJob;
|
|
|
|
|
|
@Autowired
|
|
|
- TsbDormantConversionJob dormantConversionJob;
|
|
|
+ TsbDormantTransformJob dormantTransformJob;
|
|
|
|
|
|
@Autowired
|
|
|
- TsbSecedeCustomerJob secedeCustomerJob;
|
|
|
+ TsbSecedeProcessJob secedeProcessJob;
|
|
|
|
|
|
/**
|
|
|
* 휴면전환 예정 대상 메일 발송
|
|
|
@@ -37,37 +34,37 @@ public class TsbCustomerTask {
|
|
|
* @author jsshin
|
|
|
* @since 2021. 03. 08
|
|
|
*/
|
|
|
- //@Scheduled(cron = "${cron.customer.scheduleDormantCustomerJob}")
|
|
|
- //@Scheduled(fixedDelay=360000)
|
|
|
+ //@Scheduled(cron = "${cron.customer.dormant.schedule}")
|
|
|
+// @Scheduled(fixedDelay=360000)
|
|
|
@Async
|
|
|
- public void scheduleDormantCustomerJob() throws Exception {
|
|
|
- dormantScheduleJob.run("cron.customer.scheduleDormantCustomerJob");
|
|
|
+ public void dormantScheduleJob() throws Exception {
|
|
|
+ dormantScheduleJob.runById("cron.customer.dormant.schedule");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 휴면처리
|
|
|
+ * 휴면전환
|
|
|
* @throws Exception - 예외처리
|
|
|
* @author jsshin
|
|
|
* @since 2021. 03. 08
|
|
|
*/
|
|
|
- //@Scheduled(cron = "${cron.customer.dormantConversionJob}")
|
|
|
+ //@Scheduled(cron = "${cron.customer.dormant.transform}")
|
|
|
// @Scheduled(fixedDelay=360000)
|
|
|
@Async
|
|
|
- public void dormantConversionJob() throws Exception {
|
|
|
- dormantConversionJob.run("cron.customer.dormantConversionJob");
|
|
|
+ public void dormantTransformJob() throws Exception {
|
|
|
+ dormantTransformJob.runById("cron.customer.dormant.transform");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 탈퇴회원
|
|
|
+ * 탈퇴회원 처리
|
|
|
* @throws Exception - 예외처리
|
|
|
* @author jsshin
|
|
|
* @since 2021. 03. 08
|
|
|
*/
|
|
|
- //@Scheduled(cron = "${cron.customer.secedeCustomerJob}")
|
|
|
+ //@Scheduled(cron = "${cron.customer.secede.process}")
|
|
|
// @Scheduled(fixedDelay=360000)
|
|
|
@Async
|
|
|
- public void secedeCustomerJob() throws Exception {
|
|
|
- secedeCustomerJob.run("cron.customer.secedeCustomerJob");
|
|
|
+ public void secedeProcessJob() throws Exception {
|
|
|
+ secedeProcessJob.runById("cron.customer.secede.process");
|
|
|
}
|
|
|
|
|
|
|