Commit c08863dc by 罗志长

fix: 设备属性读取

parent aa3ee3fa
......@@ -1229,11 +1229,11 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
List<String> properties = null;
// 跌倒
if (PlatDeviceEnum.CategoryEnum.FALL.getValue().equals(category)) {
properties = Lists.newArrayList("radarMount,radarHight,radarSence,radarSPL");
properties = Lists.newArrayList("radarMount", "radarHight", "radarSence", "radarSPL");
}
// 空间人体
if (PlatDeviceEnum.CategoryEnum.SPACE.getValue().equals(category)) {
properties = Lists.newArrayList("radarMount,radarMode,radarDistance,radarAngle,radarDelay");
properties = Lists.newArrayList("radarMount", "radarMode", "radarDistance", "radarAngle", "radarDelay");
}
List<DeviceProperties> data = devicePropertiesOperateService.deviceRead(platDevice.getOriDeviceId(), properties);
Map<String, Object> attrMap = data.stream().filter(p -> !Objects.isNull(p.getValue())).collect(Collectors.toMap(DeviceProperties::getProperty, DeviceProperties::getValue));
......
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 sign in to comment