package com.njzscloud.supervisory.order.service;

import com.njzscloud.common.sichen.support.Task;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RequiredArgsConstructor
public class OrderInfoServiceTask {
    private final OrderInfoService orderInfoService;

    /**
     * 每 30 分钟检查一次
     */
    @Task(cron = "0 0/30 * * * ?")
    public void orderTimeOut() {
        orderInfoService.orderTimeOut();
    }

}
