fix: 设备在离线,溶解氧和温度报警逻辑修改。
This commit is contained in:
@@ -246,6 +246,8 @@ public class AmqpMessageHandlerImpl implements AmqpMessageHandler {
|
||||
|
||||
if ("offline".equals(status) && deviceDataHandler != null && deviceName != null) {
|
||||
deviceDataHandler.handleDeviceOffline(deviceName);
|
||||
} else if ("online".equals(status) && deviceDataHandler != null && deviceName != null) {
|
||||
deviceDataHandler.handleDeviceOnline(deviceName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -264,6 +266,8 @@ public class AmqpMessageHandlerImpl implements AmqpMessageHandler {
|
||||
|
||||
if ("offline".equals(action) && deviceDataHandler != null && deviceName != null) {
|
||||
deviceDataHandler.handleDeviceOffline(deviceName);
|
||||
} else if ("online".equals(action) && deviceDataHandler != null && deviceName != null) {
|
||||
deviceDataHandler.handleDeviceOnline(deviceName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user