|
|
@@ -5,6 +5,7 @@ import com.yunfeiyun.agmp.iot.common.enums.EnumWarnRuleOp;
|
|
|
import com.yunfeiyun.agmp.iots.warn.model.WarnResult;
|
|
|
import com.yunfeiyun.agmp.iots.warn.util.CompareUtil;
|
|
|
import com.yunfeiyun.agmp.iots.warn.util.WarnMessageBuilderUtil;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -22,6 +23,9 @@ public class WarnService {
|
|
|
@Resource(name = "threadPoolTaskExecutor")
|
|
|
private ThreadPoolTaskExecutor threadPoolTaskExecutor;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ReCountService reCountService;
|
|
|
+
|
|
|
/**
|
|
|
* 统一处理上报数据
|
|
|
*
|
|
|
@@ -78,8 +82,7 @@ public class WarnService {
|
|
|
*/
|
|
|
void handleWarnRecord(WarnResult warnResult) {
|
|
|
if (warnResult.isTriggered()) {
|
|
|
- //进行预警重复次数处理机制
|
|
|
- //入库 todo
|
|
|
+ reCountService.handlerMessage(warnResult);
|
|
|
}
|
|
|
}
|
|
|
|