package org.jeecg.modules.quartz.job;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.system.app.mapper.AppGmtInfoMapper;
import org.jeecg.modules.system.app.service.IAppOrderProInfoService;
import org.jeecg.modules.system.app.service.IAppOrderService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author wzq
 * @date 2025/9/8 15:18
 * @description
 */
@Slf4j
@AllArgsConstructor
//@Component
public class SchoolOrderJobService {

    private final IAppOrderService appOrderService;

    private final IAppOrderProInfoService appOrderProInfoService;

    @Resource
    private AppGmtInfoMapper appGmtInfoMapper;

    /**
     *  @Description 查询学校开门记录表，匹配已开过门的订单，修改订单状态为已使用
     */
    @Scheduled(cron = "")
    @Transactional(rollbackFor = Exception.class)
    public void execute(){
        log.info("开始执行检查学校开门记录定时任务");
        try {

        }catch (Exception e){
            log.error("检查已过期未使用的订单退款定时任务异常",e);
        }
    }
}
