From 4d9b5d28ba285be344fbecfff62ead7dfeaa544d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Mon, 5 Aug 2024 10:02:14 +0800 Subject: [PATCH] =?UTF-8?q?debug:=E8=AE=BE=E5=A4=87=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/iot/domain/CurrentDeviceData.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smart-switch-service/src/main/java/com/ruoyi/iot/domain/CurrentDeviceData.java b/smart-switch-service/src/main/java/com/ruoyi/iot/domain/CurrentDeviceData.java index b4cfcc43..74ec48c5 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/iot/domain/CurrentDeviceData.java +++ b/smart-switch-service/src/main/java/com/ruoyi/iot/domain/CurrentDeviceData.java @@ -28,7 +28,6 @@ public class CurrentDeviceData { */ public IotDeviceInfo parseDeviceInfo() { IotDeviceInfo device = IotDeviceInfo.newDefaultInstance(); - device.setAt(new Date()); device.setMac(title); device.setId(id); if (CollectionUtils.isEmpty(datastreams)) { @@ -37,7 +36,6 @@ public class CurrentDeviceData { for (CurrentDatastream stream : datastreams) { String value = stream.getValue().toString(); - device.setAt(stream.getAt()); switch (stream.getId()) { case ReceiveConstants.DS_V: @@ -64,6 +62,7 @@ public class CurrentDeviceData { break; case ReceiveConstants.DS_TIME: device.setTime(NumberUtils.nonNullDecimal(value)); + device.setAt(stream.getAt()); break; case ReceiveConstants.DS_FW: device.setModel(value);