中扬CRM客户关系管理系统
#
LSH
2023-11-10 ddfd131179d3b074dd22f044dd0267c976143db6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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<String> result = cstmrCopyHandler.start();
    }
 
}