package cn.com.ctop.job.bytedance.handler;


import cn.com.ctop.alarm.modules.service.IRuleGroupService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AlarmRuleJob {
    @Autowired
    private IRuleGroupService ruleGroupService;

    /**
     * 定时任务
     *
     * @param
     * @return
     * @throws
     * @author ZHAOXA
     */
    @XxlJob("alarmRuleJob")
    public void execute() throws Exception {
        ruleGroupService.checkRules();
    }
}
