Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
67d10af3
Commit
67d10af3
authored
Mar 15, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息处理时判断是否已存在告警数据
parent
f5bcdb45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
MaintenanceResultHandlerMessage.java
...module/hygf/biz/emqx/MaintenanceResultHandlerMessage.java
+3
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/emqx/MaintenanceResultHandlerMessage.java
View file @
67d10af3
...
@@ -26,6 +26,7 @@ import org.typroject.tyboot.component.emq.EmqxListener;
...
@@ -26,6 +26,7 @@ import org.typroject.tyboot.component.emq.EmqxListener;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
@Component
@Component
...
@@ -75,8 +76,8 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
...
@@ -75,8 +76,8 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
String
stationid
=
specialMap
.
get
(
"stationId"
)
==
null
?
null
:
specialMap
.
get
(
"stationId"
).
toString
();
String
stationid
=
specialMap
.
get
(
"stationId"
)
==
null
?
null
:
specialMap
.
get
(
"stationId"
).
toString
();
Long
warningId
=
specialMap
.
containsKey
(
"warningId"
)
?
Long
.
valueOf
(
specialMap
.
get
(
"warningId"
).
toString
())
:
0L
;
Long
warningId
=
specialMap
.
containsKey
(
"warningId"
)
?
Long
.
valueOf
(
specialMap
.
get
(
"warningId"
).
toString
())
:
0L
;
if
(
warningId
>
0
){
if
(
warningId
>
0
){
HYGFMaintenanceTickets
hygfMaintenanceTickets1
=
hygfMaintenanceTicketsMapper
.
selectOne
(
new
QueryWrapper
<
HYGFMaintenanceTickets
>().
eq
(
"warning_id"
,
warningId
));
List
<
HYGFMaintenanceTickets
>
hygfMaintenanceTicketsList
=
hygfMaintenanceTicketsMapper
.
selectList
(
new
QueryWrapper
<
HYGFMaintenanceTickets
>().
eq
(
"warning_id"
,
warningId
));
if
(
ObjectUtil
.
isNotEmpty
(
hygfMaintenanceTickets1
)
)
{
if
(
hygfMaintenanceTicketsList
.
size
()>
0
)
{
return
;
return
;
}
}
}
}
...
...
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