package com.ruoyi.dataInterchange.util;
|
|
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();
|
}
|
}
|