package com.pcloud.book.cultivate.schedules;

import com.pcloud.book.cultivate.biz.CultivateNotifyBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ClearExpireNotifies {

    @Autowired
    private CultivateNotifyBiz cultivateNotifyBiz;

    @Scheduled(cron = "0 0 1 * * ?")
    public void doJob(){
        cultivateNotifyBiz.clearExpireNotifies();
    }

}


