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();
|
}
|
}
|