|
@@ -5,6 +5,7 @@ import com.yunzhi.marketing.common.CommConstant;
|
5
|
5
|
import com.yunzhi.marketing.entity.TaRecommendCustomer;
|
6
|
6
|
import com.yunzhi.marketing.service.ITaRecommendCustomerService;
|
7
|
7
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
8
|
+import org.springframework.scheduling.annotation.Scheduled;
|
8
|
9
|
|
9
|
10
|
import java.time.LocalDateTime;
|
10
|
11
|
import java.util.List;
|
|
@@ -14,7 +15,7 @@ public class CustomerTimeJob {
|
14
|
15
|
@Autowired
|
15
|
16
|
private ITaRecommendCustomerService taRecommendCustomerService;
|
16
|
17
|
|
17
|
|
- // @Scheduled(cron = "* 0/1 * * * ?")
|
|
18
|
+ @Scheduled(cron = "0 0 0 * * ?")
|
18
|
19
|
private void customerTimeJob() {
|
19
|
20
|
LocalDateTime nowDate = LocalDateTime.now();
|
20
|
21
|
LocalDateTime beforeTime = nowDate.plusDays(-15);
|