package com.jeequan.jeepay.pay.task;

import com.jeequan.jeepay.service.impl.RefundOrderService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*
* 退款订单过期定时任务
*
* @author terrfly
*
* @date 2021/6/17 14:36
*/
@Slf4j
@Component
public class RefundOrderExpiredTask {

    @Autowired private RefundOrderService refundOrderService;

    @XxlJob("refundOrderExpiredTaskHandler")
    public void start() {

        int updateCount = refundOrderService.updateOrderExpired();
        log.info("处理退款订单超时{}条.", updateCount);
    }


}
