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
d3aa61dd
Commit
d3aa61dd
authored
Mar 18, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
当告警id为空时增加判断
parent
c4436854
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+1
-1
MaintenanceResultHandlerMessage.java
...module/hygf/biz/emqx/MaintenanceResultHandlerMessage.java
+1
-1
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
d3aa61dd
...
...
@@ -292,7 +292,7 @@ public class TdHygfJpInverterWarnController extends BaseController {
result
.
setTotal
(
tdHygfJpInverterWarnServiceImpl
.
selectWarnListTotal
(
state
,
level
,
minvalue
,
maxValue
,
snCode
,
stationId
,
startTime
,
endTime
,
content
,
handlerStatus
));
List
<
Long
>
waringIds
=
maps
.
stream
().
map
(
tdHygfJpInverterWarnDto
->
tdHygfJpInverterWarnDto
.
getCreatedTime
()).
collect
(
Collectors
.
toList
());
if
(
waringIds
.
size
()
>
0
){
if
(
waringIds
.
size
()
==
0
){
waringIds
=
Arrays
.
asList
(
0L
);
}
List
<
HYGFMaintenanceTickets
>
hygfMaintenanceTicketsList
=
hygfMaintenanceTicketsMapper
.
selectList
(
new
QueryWrapper
<
HYGFMaintenanceTickets
>().
in
(
"warning_id"
,
waringIds
));
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/emqx/MaintenanceResultHandlerMessage.java
View file @
d3aa61dd
...
...
@@ -76,7 +76,7 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
String
stationid
=
specialMap
.
get
(
"stationId"
)
==
null
?
null
:
specialMap
.
get
(
"stationId"
).
toString
();
Long
warningId
=
specialMap
.
containsKey
(
"warningId"
)
?
Long
.
valueOf
(
specialMap
.
get
(
"warningId"
).
toString
())
:
0L
;
if
(
warningId
>
0
){
List
<
HYGFMaintenanceTickets
>
hygfMaintenanceTicketsList
=
hygfMaintenanceTicketsMapper
.
selectList
(
new
QueryWrapper
<
HYGFMaintenanceTickets
>().
eq
(
"warning_id"
,
warningId
));
List
<
HYGFMaintenanceTickets
>
hygfMaintenanceTicketsList
=
hygfMaintenanceTicketsMapper
.
selectList
(
new
QueryWrapper
<
HYGFMaintenanceTickets
>().
eq
(
"warning_id"
,
warningId
)
.
eq
(
"handler_status"
,
"未处理"
)
);
if
(
hygfMaintenanceTicketsList
.
size
()>
0
)
{
return
;
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
View file @
d3aa61dd
...
...
@@ -90,7 +90,7 @@ public class TdHygfJpInverterWarnServiceImpl
}
}
List
<
Long
>
waringIds
=
list
.
stream
().
map
(
tdHygfJpInverterWarnDto1
->
tdHygfJpInverterWarnDto1
.
getCreatedTime
()).
collect
(
Collectors
.
toList
());
if
(
waringIds
.
size
()
>
0
){
if
(
waringIds
.
size
()
==
0
){
waringIds
=
Arrays
.
asList
(
0L
);
}
List
<
HYGFMaintenanceTickets
>
hygfMaintenanceTicketsList
=
hygfMaintenanceTicketsMapper
.
selectList
(
new
QueryWrapper
<
HYGFMaintenanceTickets
>().
in
(
"warning_id"
,
waringIds
));
...
...
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