package com.fs.course.task;

import com.fs.course.mapper.FsCourseRedPacketLogMapper;
import com.fs.course.service.IFsCourseRedPacketLogService;
import com.fs.course.service.impl.FsCourseRedPacketLogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @description: 微信红包转账回调部分没有接收到，主动自己去查询
 * @author: Xgb
 * @createDate: 2025/10/15
 * @version: 1.0
 */
@Component("redPacketLogsTask")
public class RedPacketLogsTask {

    @Autowired
    private IFsCourseRedPacketLogService fsCourseRedPacketLogService;

    /**
     * @Description: 查询微信红包转账结果 每10分钟查询上一个10分钟区间的红包转账结果
     * (定时调取失败 可以启动fs-qw-task 中的 CommonController queryRedPacketResult 手动调取) 仅给内部人员使用
     * @Param:
     * @Return:
     * @Author xgb
     * @Date 2025/10/15 16:32
     */
    public void queryRedPacketResult() {

        // 查询RedPacketLog表,
        fsCourseRedPacketLogService.queryRedPacketResult(null, null);
    }

}
