package com.ruoyi.quartz.task;

import com.ruoyi.system.service.task.TaskService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author vidar
 * date 2025/2/11
 * description
 */
@Component
public class TaskJob {
    @Resource
    private TaskService taskService;

    @Scheduled(cron = "0 0 7 * * *")
    public void exec(){
        taskService.dealBihuan();
    }
}
