Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
05b23963
authored
Dec 13, 2023
by
汪志阳
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
085e5c8b
92de2c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
View file @
05b23963
...
...
@@ -232,7 +232,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
boolean
spaceNoPersonFlag
=
false
;
for
(
PlatDevice
device
:
spaceDeviceList
)
{
Set
<
String
>
dataSet
=
redisTemplate
.
opsForZSet
().
rangeByScore
(
DEVICE_SPACE_TEMP_DATA
+
device
.
getOriDeviceId
(),
-
10
,-
1
);
Set
<
String
>
dataSet
=
redisTemplate
.
opsForZSet
().
rangeByScore
(
DEVICE_SPACE_TEMP_DATA
+
device
.
getOriDeviceId
(),
currentSecond
-
10
,
currentSecond
);
if
(
CollectionUtils
.
isEmpty
(
dataSet
))
{
log
.
info
(
"空间设备当前没有上报数据直接返回"
);
spaceNoPersonFlag
=
true
;
...
...
@@ -278,7 +278,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
}
boolean
fallNoPersonFlag
=
false
;
for
(
PlatDevice
device
:
fallDeviceList
)
{
Set
<
String
>
dataSet
=
redisTemplate
.
opsForZSet
().
rangeByScore
(
DEVICE_FALL_TEMP_DATA
+
device
.
getOriDeviceId
(),
-
10
,-
1
);
Set
<
String
>
dataSet
=
redisTemplate
.
opsForZSet
().
rangeByScore
(
DEVICE_FALL_TEMP_DATA
+
device
.
getOriDeviceId
(),
currentSecond
-
10
,
currentSecond
);
if
(
CollectionUtils
.
isEmpty
(
dataSet
))
{
log
.
info
(
"跌倒设备当前没有上报数据直接返回"
);
fallNoPersonFlag
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment