瀏覽代碼

修改bug

傅行帆 3 年之前
父節點
當前提交
e5abe08bbb

+ 1130
- 1129
src/main/java/com/yunzhi/marketing/controller/TaRecommendCustomerController.java
文件差異過大導致無法顯示
查看文件


+ 2
- 1
src/main/java/com/yunzhi/marketing/job/CustomerTimeJob.java 查看文件

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