Преглед на файлове

首页 查询检测系统 在线离线 1:在线 2:离线

sunhh преди 1 година
родител
ревизия
ef948b2782
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      business-service/src/main/java/com/ozs/service/impl/MonitorSystemServiceImpl.java

+ 1 - 1
business-service/src/main/java/com/ozs/service/impl/MonitorSystemServiceImpl.java

@@ -188,7 +188,7 @@ public class MonitorSystemServiceImpl extends ServiceImpl<MonitorSystemMapper, M
                 AlarmHeartbeatLog alarmHeartbeatLog = monitorSystemMapper.selectAlarmHeartbeatLogByClientId(monitorSystem.getClientId());
                 if (StringUtils.isEmptySunhh(alarmHeartbeatLog)) {
                     offlineMonitor++;
-                    monitorSystem.setStatus(2);
+                    monitorSystem.setStatus(1);
                 } else {
                     long timeNow = new Date().getTime();
                     long createTime = alarmHeartbeatLog.getCreateTime().getTime();