package com.ruoyi.integration.util;
|
|
import com.ruoyi.integration.rocket.produce.ChargingMessageListener;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
import javax.annotation.Resource;
|
|
|
/**
|
* @author zhibing.pu
|
* @date 2023/7/11 8:39
|
*/
|
@Component
|
public class TaskUtil {
|
|
@Resource
|
private ChargingMessageListener chargingMessageListener;
|
|
|
/**
|
* 5分钟执行的定时任务
|
*/
|
@Scheduled(fixedRate = 300000)
|
public void taskMonth() {
|
chargingMessageListener.transactionRecord();
|
}
|
|
|
}
|