门店号管理
parent
6bd27f5407
commit
acb83e61a7
@ -0,0 +1,23 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue