package cn.iocoder.yudao.job;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.framework.tenant.core.job.TenantJob;
import cn.iocoder.yudao.module.tickets.service.DlRepairTicketsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 超时自动总检的定时任务
 *
 * @author 小李
 * @date 16:32 2024/10/26
**/
@Component
@TenantJob
@Slf4j
public class AutoInspectionJob implements JobHandler {

    @Resource
    private DlRepairTicketsService repairTicketsService;

    @Override
    public String execute(String param) throws Exception {
        repairTicketsService.autoInspection();
        return null;
    }
}
