Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
jinan
traffic-signal-platform
Commits
e81c1ce7
Commit
e81c1ce7
authored
Mar 14, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 事件实时列表优化
parent
93b72b6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
TrendControllerV2.java
...in/java/net/wanji/opt/controllerv2/TrendControllerV2.java
+9
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/controllerv2/TrendControllerV2.java
View file @
e81c1ce7
...
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiResponse;
import
io.swagger.annotations.ApiResponses
;
import
lombok.extern.slf4j.Slf4j
;
import
net.wanji.common.framework.rest.JsonViewObject
;
import
net.wanji.common.utils.tool.StringUtils
;
import
net.wanji.opt.servicev2.TrendServiceV2
;
import
net.wanji.opt.vo2.*
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -145,10 +146,16 @@ public class TrendControllerV2 {
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
OptMonitoringVO
.
class
),
})
public
JsonViewObject
eventAlarmRealTimeList
()
throws
Exception
{
public
JsonViewObject
eventAlarmRealTimeList
(
String
type
)
throws
Exception
{
List
<
OptMonitoringVO
>
list
=
Collections
.
emptyList
();
try
{
list
=
trendServiceV2
.
eventAlarmRealTimeList
();
if
(
StringUtils
.
isBlank
(
type
))
{
list
=
trendServiceV2
.
eventAlarmRealTimeList
();
}
else
{
list
=
trendServiceV2
.
eventAlarmRealTimeList
().
stream
()
.
filter
(
vo
->
StringUtils
.
equalsIgnoreCase
(
type
,
vo
.
getType
()))
.
collect
(
Collectors
.
toList
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
"态势监测-事件告警-实时列表:"
,
e
);
JsonViewObject
.
newInstance
().
success
(
list
);
...
...
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