package cn.iocoder.yudao.module.job.job;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.framework.tenant.core.job.TenantJob;
import cn.iocoder.yudao.module.infra.service.job.JobLogService;
import cn.iocoder.yudao.module.reminder.service.IInspectionReminderConfigService;
import cn.iocoder.yudao.module.shop.service.IShopUserCarService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 定时执行提醒
 *
 * @author j-sentinel
 */
@Slf4j
@Component
public class ExpirationReminderJob implements JobHandler {

    @Resource
    private IInspectionReminderConfigService inspectionReminderConfigService;

    @Override
    @TenantJob
    public String execute(String param) {
        inspectionReminderConfigService.expireInspectionReminder();
        log.info("定时提醒开启");
        return String.format("定时执行清理定时任务日志数量 %s 个");
    }

}
