zss
2 天以前 83d3c6ec7fc56157d7624ab2dc98d5aed0943d9b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.ruoyi.basic.task;
 
import com.ruoyi.basic.service.ICustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Component
public class CustomerTask {
 
    @Autowired
    private ICustomerService customerService;
 
    @Scheduled(cron = "0 0 * * * ?")
    public void syncCustomerDataJob() {
        customerService.syncCustomerJob();
    }
}