You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
622 B
Java
24 lines
622 B
Java
package com.kiisoo.ic.job.count;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
@Service
|
|
@Slf4j
|
|
public class SyncCountJobService {
|
|
@Autowired
|
|
private CustomerCountJob customerDataJob;
|
|
|
|
@Scheduled(cron = "0 0/15 9 * * ?")
|
|
public void getCustomerInfo(){
|
|
try {
|
|
customerDataJob.handle(false);
|
|
}catch (Exception e){
|
|
log.error("",e);
|
|
}
|
|
}
|
|
}
|