From a56cbc8a929232b039f137fc51b5af27f40b2822 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 01 八月 2024 15:33:25 +0800 Subject: [PATCH] feat:异常恢复监控 --- ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java index 78339cd..f7e87d5 100644 --- a/ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java +++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java @@ -101,7 +101,11 @@ return ywThresholdMapper.deleteYwThresholdById(id); } - + /** + * 鍒ゆ柇瑙嗛闃堝�兼槸鍚︽弧瓒充笅鍙戞潯浠� + * + * @param list + */ @Override public void videoCheck(List list) { @@ -207,15 +211,15 @@ T thresholdAutoValue = parseThreshold(ywThreshold.getValue(), value.getClass()); //姣旇緝澶у皬锛屽姞鍏ュ埌瀵瑰簲寰呭鐞嗛泦鍚� if (compareType.compare(v, thresholdAutoValue)) { + //鑷姩涓嬪彂宸ュ崟 workOrderList.add(result); } else if (compareType.compare(v, thresholdValue)) { + //杩涘叆宸ュ崟浠d笅鍙� distributeList.add(result); } }, () -> log.error("{} 涓虹┖: {}", thresholds.get(key).getName(), result) ); - - } private <T extends Comparable<T>> T parseThreshold(String thresholdStr, Class<?> type) { -- Gitblit v1.8.0