Browse Source

设备状态ws推送增加设备类型

develop
Mr.Wang 11 months ago
parent
commit
4473cb30bb
  1. 1
      zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

1
zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

@ -84,6 +84,7 @@ public class DeviceMessageHandler {
DcDevice device = redisCache.getCacheMapValue(RedisKeyConstants.DC_DEVICES, dcDevice.getIotDeviceId());
if (!ObjectUtils.isEmpty(device)) {
dcDevice.setId(device.getId());
dcDevice.setDeviceType(device.getDeviceType());
}
});

Loading…
Cancel
Save