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

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

/**
 * 入驻公示期满自动完成建档
 */
@Component
public class MerchantEntryPublicityTask
{
    @Autowired
    private IMerchantEntryApplyService applyService;

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