添加group/docks/2
This commit is contained in:
parent
637ff7da05
commit
6a48c2a3b6
|
|
@ -308,13 +308,27 @@ public class BufferDeviceImpl implements IBufferDeviceService
|
||||||
.ifPresent(telemetryValue -> dto.setCabinHumidity(telemetryValue.getValue()));
|
.ifPresent(telemetryValue -> dto.setCabinHumidity(telemetryValue.getValue()));
|
||||||
|
|
||||||
// 赋予经纬度
|
// 赋予经纬度
|
||||||
|
log.info("开始获取经纬度数据,dockerDeviceIotId: {}", dockerDeviceIotId);
|
||||||
|
|
||||||
// 纬度
|
// 纬度
|
||||||
attributeMap.get(DeviceAttributes.Latitude)
|
attributeMap.get(DeviceAttributes.Latitude)
|
||||||
.ifPresent(dto::setLatitude);
|
.ifPresentOrElse(
|
||||||
|
latitude -> {
|
||||||
|
log.info("获取到纬度数据: {}", latitude);
|
||||||
|
dto.setLatitude(latitude);
|
||||||
|
},
|
||||||
|
() -> log.warn("未获取到纬度数据,dockerDeviceIotId: {}", dockerDeviceIotId)
|
||||||
|
);
|
||||||
|
|
||||||
// 经度
|
// 经度
|
||||||
attributeMap.get(DeviceAttributes.Longitude)
|
attributeMap.get(DeviceAttributes.Longitude)
|
||||||
.ifPresent(dto::setLongitude);
|
.ifPresentOrElse(
|
||||||
|
longitude -> {
|
||||||
|
log.info("获取到经度数据: {}", longitude);
|
||||||
|
dto.setLongitude(longitude);
|
||||||
|
},
|
||||||
|
() -> log.warn("未获取到经度数据,dockerDeviceIotId: {}", dockerDeviceIotId)
|
||||||
|
);
|
||||||
|
|
||||||
return dto;
|
return dto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue