Commit 946462fa by huangjy

feat:外出逻辑变更

parent da4618e4
......@@ -233,6 +233,9 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
boolean sportFlag = true;
boolean spaceNoPersonFlag = false;
if (CollectionUtils.isEmpty(spaceDeviceList)) {
spaceNoPersonFlag = true;
}
for (PlatDevice device : spaceDeviceList) {
Set<String> dataSet = redisTemplate.opsForZSet().rangeByScore(DEVICE_SPACE_TEMP_DATA + device.getOriDeviceId(), currentSecond - 10,currentSecond);
if (CollectionUtils.isEmpty(dataSet)) {
......@@ -281,6 +284,9 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
}
}
boolean fallNoPersonFlag = false;
if (CollectionUtils.isEmpty(fallDeviceList)) {
fallNoPersonFlag = true;
}
for (PlatDevice device : fallDeviceList) {
Set<String> dataSet = redisTemplate.opsForZSet().rangeByScore(DEVICE_FALL_TEMP_DATA + device.getOriDeviceId(), currentSecond - 10, currentSecond);
if (CollectionUtils.isEmpty(dataSet)) {
......
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