zjs 1 天之前
父節點
當前提交
a9ae3d7e34
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/cn/esermis/dpld/business/MonitorBusiness.java

+ 2 - 2
src/main/java/com/cn/esermis/dpld/business/MonitorBusiness.java

@@ -296,7 +296,7 @@ public class MonitorBusiness {
296 296
                     String[] split = range.split("-");
297 297
                     if (split.length > 2
298 298
                             && ((isNumeric(range)  && new BigDecimal(split[0]).compareTo(x.getAvg()) < 0)
299
-                            || (isNumeric(range) && new BigDecimal(split[2]).compareTo(x.getAvg()) < 0))) {
299
+                            || (isNumeric(range) && new BigDecimal(split[2]).compareTo(x.getAvg()) > 0))) {
300 300
                         addExcepLog(record.getFactor(), "3",record.getMn());
301 301
                     }
302 302
                 }else{
@@ -350,7 +350,7 @@ public class MonitorBusiness {
350 350
                     String[] split = range.split("-");
351 351
                     if (split.length > 2
352 352
                             && ((isNumeric(range)  && new BigDecimal(split[0]).compareTo(x.getAvg()) < 0)
353
-                            || (isNumeric(range) && new BigDecimal(split[2]).compareTo(x.getAvg()) < 0))) {
353
+                            || (isNumeric(range) && new BigDecimal(split[2]).compareTo(x.getAvg()) > 0))) {
354 354
                         addExcepLog(record.getFactor(), "3",record.getMn());
355 355
                     }
356 356
                 }else{