|
|
@@ -1,6 +1,5 @@
|
|
|
package com.style24.batch.biz.task;
|
|
|
|
|
|
-import com.style24.batch.biz.job.statistics.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
@@ -10,7 +9,9 @@ import com.style24.batch.biz.job.statistics.TsbDateTimeOrderStaticsJob;
|
|
|
import com.style24.batch.biz.job.statistics.TsbDayOrderStaticsJob;
|
|
|
import com.style24.batch.biz.job.statistics.TsbInflowStatisticsJob;
|
|
|
import com.style24.batch.biz.job.statistics.TsbInflowYesterdayStatisticsJob;
|
|
|
+import com.style24.batch.biz.job.statistics.TsbPayStaticsJob;
|
|
|
import com.style24.batch.biz.job.statistics.TsbSalesSmsSendJob;
|
|
|
+import com.style24.batch.biz.job.statistics.TsbSubPayStaticsJob;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
@@ -44,7 +45,6 @@ public class TsbStatisticsTask {
|
|
|
@Autowired
|
|
|
private TsbSalesSmsSendJob salesSmsSendJob;
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 초 분 시 일 월 주(년)
|
|
|
* 0 0 12 * * ?" : 아무 요일, 매월, 매일 12:00:00
|
|
|
@@ -134,11 +134,20 @@ public class TsbStatisticsTask {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 전일자 매출문자 발송
|
|
|
+ * 매출문자 발송 (평일은 저녁 8시30분, 11시30분)
|
|
|
+ */
|
|
|
+ @Scheduled(cron = "${cron.statistics.sales.sms.send1}")
|
|
|
+ @Async
|
|
|
+ public void sendSalesSmsJob1() throws Exception {
|
|
|
+ salesSmsSendJob.runById("cron.statistics.sales.sms.send");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 매출문자 발송 (주말(토/일)은 오전 10시, 오후 2시, 6시, 저녁 10시)
|
|
|
*/
|
|
|
- @Scheduled(cron = "${cron.statistics.sales.sms.send}")
|
|
|
+ @Scheduled(cron = "${cron.statistics.sales.sms.send2}")
|
|
|
@Async
|
|
|
- public void sendSalesSmsJob() throws Exception {
|
|
|
+ public void sendSalesSmsJob2() throws Exception {
|
|
|
salesSmsSendJob.runById("cron.statistics.sales.sms.send");
|
|
|
}
|
|
|
|