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.project.service.RepairWaresService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 配件入库超多少天（可以自己设置）没用的话需要做一个临期提醒
 *
 * @author 小李
 * @date 14:40 2024/11/30
**/
@Component
@TenantJob
@Slf4j
public class WaresTimeOverJob implements JobHandler {

    @Resource
    @Lazy
    private RepairWaresService waresService;

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