zjs 1 day ago
parent
commit
a9ae3d7e34
1 changed files with 2 additions and 2 deletions
  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
                     String[] split = range.split("-");
296
                     String[] split = range.split("-");
297
                     if (split.length > 2
297
                     if (split.length > 2
298
                             && ((isNumeric(range)  && new BigDecimal(split[0]).compareTo(x.getAvg()) < 0)
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
                         addExcepLog(record.getFactor(), "3",record.getMn());
300
                         addExcepLog(record.getFactor(), "3",record.getMn());
301
                     }
301
                     }
302
                 }else{
302
                 }else{
@@ -350,7 +350,7 @@ public class MonitorBusiness {
350
                     String[] split = range.split("-");
350
                     String[] split = range.split("-");
351
                     if (split.length > 2
351
                     if (split.length > 2
352
                             && ((isNumeric(range)  && new BigDecimal(split[0]).compareTo(x.getAvg()) < 0)
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
                         addExcepLog(record.getFactor(), "3",record.getMn());
354
                         addExcepLog(record.getFactor(), "3",record.getMn());
355
                     }
355
                     }
356
                 }else{
356
                 }else{