Commit 18f2fb46 by huangjy

fix:判断跌倒设备

parent a821879d
...@@ -308,7 +308,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService { ...@@ -308,7 +308,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
}).collect(Collectors.toList()); }).collect(Collectors.toList());
boolean xFlag = false; boolean xFlag = false;
fallNoPersonFlag = voList.stream().allMatch(e -> e.getPersonState() == 0); fallNoPersonFlag = voList.stream().allMatch(e -> e.getPerson() == 0);
if (fallNoPersonFlag) { if (fallNoPersonFlag) {
continue; continue;
} }
......
...@@ -191,9 +191,6 @@ public class PushCallback implements MqttCallback { ...@@ -191,9 +191,6 @@ public class PushCallback implements MqttCallback {
for (HeaderInfo.Bind binding : bindings) { for (HeaderInfo.Bind binding : bindings) {
try { try {
String iot_tenantId = binding.getId(); String iot_tenantId = binding.getId();
StopWatch stopWatch = new StopWatch();
stopWatch.start("checkAlarm-1");
JSONObject properties = device.getProperties(); JSONObject properties = device.getProperties();
//iot设备id //iot设备id
...@@ -227,10 +224,6 @@ public class PushCallback implements MqttCallback { ...@@ -227,10 +224,6 @@ public class PushCallback implements MqttCallback {
} }
} }
} }
stopWatch.stop();
logger.info(stopWatch.prettyPrint());
}catch (Exception e){ }catch (Exception e){
logger.error("告警异常pushCallback:",e); logger.error("告警异常pushCallback:",e);
} }
......
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