Commit 41b8f5c5 by YG8999

设备初始状态变更为在线时,不记录变更日志

parent 901111fd
...@@ -598,7 +598,7 @@ public class MqttxServiceImpl implements MqttxService { ...@@ -598,7 +598,7 @@ public class MqttxServiceImpl implements MqttxService {
} }
} }
} }
if (dev != null && !status.equals(dev.getStatus())) { if (dev != null && StrUtil.isNotEmpty(dev.getStatus()) && !status.equals(dev.getStatus())) {
DeviceStatusLog deviceStatusLog = new DeviceStatusLog(); DeviceStatusLog deviceStatusLog = new DeviceStatusLog();
deviceStatusLog.setDevId(devId); deviceStatusLog.setDevId(devId);
deviceStatusLog.setDevMac(dev.getDevMac()); deviceStatusLog.setDevMac(dev.getDevMac());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment