|
@@ -1,25 +1,25 @@
|
|
-package cn.com.ctop.job.kuaishou.handler;
|
|
|
|
-
|
|
|
|
-import cn.com.ctop.alarm.modules.service.IAlarmEventSendService;
|
|
|
|
-import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
|
-import org.quartz.JobExecutionException;
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
-
|
|
|
|
-@Component
|
|
|
|
-public class KuaiShouAlarmRuleMinuteCheckJob {
|
|
|
|
- @Autowired
|
|
|
|
- private IAlarmEventSendService alarmEventSendService;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 定时获取成本数据
|
|
|
|
- *
|
|
|
|
- * @throws JobExecutionException
|
|
|
|
- */
|
|
|
|
- @XxlJob("kuaiShouAlarmRuleMinuteCheckJob")
|
|
|
|
- public void execute(String param) throws Exception {
|
|
|
|
- //检查频率 HOUR - 每小时;HALF_HOUR-每半小时
|
|
|
|
- alarmEventSendService.matchAlarmRules("HALF_HOUR");
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
+//package cn.com.ctop.job.kuaishou.handler;
|
|
|
|
+//
|
|
|
|
+//import cn.com.ctop.alarm.modules.service.IAlarmEventSendService;
|
|
|
|
+//import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
|
+//import org.quartz.JobExecutionException;
|
|
|
|
+//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+//import org.springframework.stereotype.Component;
|
|
|
|
+//
|
|
|
|
+//@Component
|
|
|
|
+//public class KuaiShouAlarmRuleMinuteCheckJob {
|
|
|
|
+// @Autowired
|
|
|
|
+// private IAlarmEventSendService alarmEventSendService;
|
|
|
|
+//
|
|
|
|
+// /**
|
|
|
|
+// * 定时获取成本数据
|
|
|
|
+// *
|
|
|
|
+// * @throws JobExecutionException
|
|
|
|
+// */
|
|
|
|
+// @XxlJob("kuaiShouAlarmRuleMinuteCheckJob")
|
|
|
|
+// public void execute(String param) throws Exception {
|
|
|
|
+// //检查频率 HOUR - 每小时;HALF_HOUR-每半小时
|
|
|
|
+// alarmEventSendService.matchAlarmRules("HALF_HOUR");
|
|
|
|
+// }
|
|
|
|
+//}
|
|
|
|
+//
|