package com.yeejoin.amos.boot.module.tzs.flc.biz.quartz;

import com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderInfoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author DELL
 */
@Component
@EnableScheduling
public class CylinderSchedulerJob {

    @Autowired
    private CylinderInfoServiceImpl cylinderInfoService;

    /**
     * 每天凌晨0点-日报生成
     */
    @Scheduled(cron = "0 0 8 * * ?")
    public void dayReport() {
        cylinderInfoService.calEarlyWarningLevel();
    }
}
