Pu Zhibing
1 天以前 a37ca40125f0882a21672baa0e2b12e0d460623b
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.ruoyi.dataInterchange.util;
 
import com.ruoyi.dataInterchange.server.DOWNConnectRspService;
import com.ruoyi.dataInterchange.server.ExgMsgService;
import com.ruoyi.dataInterchange.server.WarnMsgService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
 
 
/**
 * @author zhibing.pu
 * @Date 2025/3/6 19:39
 */
@Component
public class TaskUtil {
    
    @Resource
    private ExgMsgService exgMsgService;
    
    @Resource
    private WarnMsgService warnMsgService;
 
 
    
    /**
     * 定时任务获取驾驶员信息
     */
    @Scheduled(fixedRate = 1000 * 60)
    public void taskReportDriverInfo() {
        exgMsgService.taskReportDriverInfo();
    }
    
    
    /**
     * 定时任务获取电子运单信息
     */
    @Scheduled(fixedRate = 1000 * 60)
    public void takeEwaybill() {
        exgMsgService.takeEwaybill();
    }
    
    
    /**
     * 报警督办请求
     */
    @Scheduled(fixedRate = 1000 * 60)
    public void taskUrgeTodo() {
        warnMsgService.taskUrgeTodo();
    }
}