jsshin 5 лет назад
Родитель
Сommit
809e6ad492

+ 1 - 1
src/main/java/com/style24/batch/biz/job/customer/TsbDormantConversionJob.java → src/main/java/com/style24/batch/biz/job/customer/TsbDormantTransformJob.java

@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component;
 */
 @Component
 @Slf4j
-public class TsbDormantConversionJob extends TsbAbstractJob<CustomerSearch, GagaMap, GagaMap> {
+public class TsbDormantTransformJob extends TsbAbstractJob<CustomerSearch, GagaMap, GagaMap> {
 
 	@Autowired
 	private TsbCustomerService customerService;

+ 1 - 1
src/main/java/com/style24/batch/biz/job/customer/TsbSecedeCustomerJob.java → src/main/java/com/style24/batch/biz/job/customer/TsbSecedeProcessJob.java

@@ -22,7 +22,7 @@ import java.util.Collection;
  */
 @Component
 @Slf4j
-public class TsbSecedeCustomerJob extends TsbAbstractJob<Collection<Customer>, GagaMap, GagaMap> {
+public class TsbSecedeProcessJob extends TsbAbstractJob<Collection<Customer>, GagaMap, GagaMap> {
 
 	@Autowired
 	TsbCustomerService customerService;

+ 16 - 19
src/main/java/com/style24/batch/biz/task/TsbCustomerTask.java

@@ -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");
 	}
 
 

+ 16 - 0
src/main/java/com/style24/batch/biz/task/TsbMarketingTask.java

@@ -0,0 +1,16 @@
+package com.style24.batch.biz.task;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+
+/**
+ *
+ * 마케팅 Task
+ * @author jsshin
+ * @since 2021. 04. 22
+ */
+@Component
+@Slf4j
+public class TsbMarketingTask {
+
+}

+ 7 - 3
src/main/resources/config/application-locd.yml

@@ -102,12 +102,16 @@ cron:
 
     #회원(고객)
     customer:
-        scheduleDormantCustomerJob: 2 22 2 29 2 ?
-        dormantConversionJob: 2 22 2 29 2 ?
-        secedeCustomerJob: 2 22 2 29 2 ?
+        dormant.schedule : 2 22 2 29 2 ? # 휴면예정 고객 메일발송
+        dormant.transform : 2 22 2 29 2 ? # 휴면처리
+        secede.process : 2 22 2 29 2 ?    # 탈퇴처리
 
     #전시
     display:
         category.refresh: 2 22 2 29 2 ? #카테고리 갱신
         category.stock : 2 22 2 29 2 ? #카테고리별 재고 생성
         category.filter: 2 22 2 29 2 ? #카테고리별 검색필터 생성
+
+    # 마케팅
+    marketing:
+        auto.buy.confirmed: