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
18f2fb46
authored
Dec 15, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:判断跌倒设备
parent
a821879d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
8 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
server-web/src/main/java/com/makeit/mqtt/PushCallback.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
View file @
18f2fb46
...
...
@@ -308,7 +308,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
}).
collect
(
Collectors
.
toList
());
boolean
xFlag
=
false
;
fallNoPersonFlag
=
voList
.
stream
().
allMatch
(
e
->
e
.
getPerson
State
()
==
0
);
fallNoPersonFlag
=
voList
.
stream
().
allMatch
(
e
->
e
.
getPerson
()
==
0
);
if
(
fallNoPersonFlag
)
{
continue
;
}
...
...
server-web/src/main/java/com/makeit/mqtt/PushCallback.java
View file @
18f2fb46
...
...
@@ -191,9 +191,6 @@ public class PushCallback implements MqttCallback {
for
(
HeaderInfo
.
Bind
binding
:
bindings
)
{
try
{
String
iot_tenantId
=
binding
.
getId
();
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
(
"checkAlarm-1"
);
JSONObject
properties
=
device
.
getProperties
();
//iot设备id
...
...
@@ -227,10 +224,6 @@ public class PushCallback implements MqttCallback {
}
}
}
stopWatch
.
stop
();
logger
.
info
(
stopWatch
.
prettyPrint
());
}
catch
(
Exception
e
){
logger
.
error
(
"告警异常pushCallback:"
,
e
);
}
...
...
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