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.stereotype.Component;

import javax.annotation.Resource;

/**
 * 配件库存低于几个（可以自己设置）需要做库存预警
 *
 * @author 小李
 * @date 14:40 2024/11/30
 **/
@Component
@TenantJob
@Slf4j
public class WaresStockBelowJob implements JobHandler {

    @Resource
    private RepairWaresService waresService;

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