package com.ruoyi.dataInterchange.util;
|
|
import com.ruoyi.dataInterchange.server.DOWNTotalRecvBackMsgService;
|
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;
|
|
@Resource
|
private DOWNTotalRecvBackMsgService downTotalRecvBackMsgService;
|
|
|
/**
|
* 接收车辆定位信息数据通知消息
|
*/
|
@Scheduled(fixedRate = 1000 * 60)
|
public void taskTotalRecvBack() {
|
downTotalRecvBackMsgService.taskTotalRecvBack();
|
}
|
|
|
/**
|
* 定时任务获取电子运单信息
|
*/
|
@Scheduled(fixedRate = 1000 * 60)
|
public void takeEwaybill() {
|
exgMsgService.takeEwaybill();
|
}
|
|
|
/**
|
* 报警督办请求
|
*/
|
@Scheduled(fixedRate = 1000 * 60)
|
public void taskUrgeTodo() {
|
warnMsgService.taskUrgeTodo();
|
}
|
}
|