Explorar o código

多线程优化,小时均值修改

zjs hai 2 días
pai
achega
571aa994d6

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

@@ -283,10 +283,10 @@ public class MonitorBusiness {
283 283
             excepLog.setSixLast(record.getIsSix());
284 284
             excepLog.setLoseData(record.getIsLose());
285 285
             excepLogService.save(excepLog);
286
-            if (record.getIsLose()!=null && !record.getIsLose().equals("1")){
286
+            if (record.getIsLose()!=null && record.getIsLose().equals("1")){
287 287
                 addExcepLog(record.getFactor(), "1",record.getMn());
288 288
             }
289
-            if (record.getIsSix()!=null && !record.getIsSix().equals("1")){
289
+            if (record.getIsSix()!=null && record.getIsSix().equals("1")){
290 290
                 addExcepLog(record.getFactor(), "2",record.getMn());
291 291
             }
292 292
             // 小时均值超限
@@ -337,10 +337,10 @@ public class MonitorBusiness {
337 337
             excepLog.setSixLast(record.getIsSix());
338 338
             excepLog.setLoseData(record.getIsLose());
339 339
             excepLogService.save(excepLog);
340
-            if (record.getIsLose()!=null && !record.getIsLose().equals("1")){
340
+            if (record.getIsLose()!=null && record.getIsLose().equals("1")){
341 341
                 addExcepLog(record.getFactor(), "1",record.getMn());
342 342
             }
343
-            if (record.getIsSix()!=null && !record.getIsSix().equals("1")){
343
+            if (record.getIsSix()!=null && record.getIsSix().equals("1")){
344 344
                 addExcepLog(record.getFactor(), "2",record.getMn());
345 345
             }
346 346
             // 小时均值超限