package com.fs.qw;

import com.fs.company.service.CompanyRechargeOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("orderTask")
public class OrderTask {
    @Autowired
    private CompanyRechargeOrderService companyRechargeOrderService;


    /**
     * 自动关闭超时订单
     */
    public void autoCloseTimeOutOrder(){
        companyRechargeOrderService.autoClosedOrder();
    }
}
