zjs 1 dag sedan
förälder
incheckning
a9ae3d7e34
1 ändrade filer med 2 tillägg och 2 borttagningar
  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{