Commit 33797db1 by 罗志长

fix: radarHitch属性未上报

parent 33fbd503
......@@ -1308,6 +1308,9 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
String deviceId = deviceInfo.getDeviceId();
JSONObject properties = deviceInfo.getProperties();
String faultState = properties.getString("radarHitch");
if (StringUtils.isBlank(faultState)) {
return;
}
boolean isNormal = "normal".equals(faultState);
String key = RedisConst.PLAT_IOT_DEVICE_FAULT_STATE_PREFIX + deviceId;
String value = RedisUtil.get(key);
......
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