diff --git a/src/main/java/com/kiisoo/ic/job/count/SyncCountJobService.java b/src/main/java/com/kiisoo/ic/job/count/SyncCountJobService.java new file mode 100644 index 0000000..ce7a49f --- /dev/null +++ b/src/main/java/com/kiisoo/ic/job/count/SyncCountJobService.java @@ -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); + } + } +}