|
|
@@ -1,6 +1,7 @@
|
|
|
package com.yunfeiyun.agmp.iots.warn.service;
|
|
|
|
|
|
import com.yunfeiyun.agmp.iots.warn.model.WarnResult;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
|
@@ -8,9 +9,16 @@ import org.springframework.stereotype.Service;
|
|
|
*/
|
|
|
@Service
|
|
|
public class ReCountService {
|
|
|
+ @Autowired
|
|
|
+ private IotWarnBussinessService iotWarnBussinessService;
|
|
|
|
|
|
+ /**
|
|
|
+ * 针对预警解析出来的结果进行处理
|
|
|
+ *
|
|
|
+ * @param warnResult
|
|
|
+ */
|
|
|
public void handlerMessage(WarnResult warnResult) {
|
|
|
- // 触发了预警,进行瑞校验处理
|
|
|
+ // 触发了预警,进行校验处理
|
|
|
if (warnResult.isTriggered()) {
|
|
|
// 当前的获取重复次数
|
|
|
int reCount = 5;
|
|
|
@@ -46,4 +54,10 @@ public class ReCountService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 清空重复次数
|
|
|
+ */
|
|
|
+ public void resetAllReCount() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|