package com.zy.crm.manager.task; import com.zy.crm.manager.service.CstmrService; import com.zy.crm.manager.task.core.ReturnT; import com.zy.crm.manager.task.handler.CstmrCopyHandler; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** * Created by vincent on 2023/11/04 */ @Slf4j @Component public class CstmrCopyScheduler { @Autowired private CstmrService cstmrService; @Autowired private CstmrCopyHandler cstmrCopyHandler; @Scheduled(cron = "0/3 * * * * ? ") private void execute() { ReturnT result = cstmrCopyHandler.start(); } }