package com.ruoyi.web.modules.entry.task;

import com.ruoyi.web.modules.entry.service.IMerchantEntryApplyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 入驻公示期满自动完成建档
 */
@Component
public class MerchantEntryPublicityTask

{
    private static final Logger LOGGER = LoggerFactory.getLogger(MerchantEntryPublicityTask.class);

    @Autowired
    private IMerchantEntryApplyService applyService;

    @Scheduled(cron = "0 0/30 * * * ?")
    public void processExpiredPublicity()
    {
        LOGGER.info("---------------enter MerchantEntryPublicityTask---------------------");
        applyService.processExpiredPublicity();
    }
}
