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
c0651db2
Commit
c0651db2
authored
Mar 19, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 绿波事件过滤畅通
parent
94985be8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
TrendControllerV2.java
...in/java/net/wanji/opt/controllerv2/TrendControllerV2.java
+3
-1
TrendServiceV2Impl.java
...va/net/wanji/opt/servicev2/implv2/TrendServiceV2Impl.java
+11
-7
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/controllerv2/TrendControllerV2.java
View file @
c0651db2
...
...
@@ -160,7 +160,9 @@ public class TrendControllerV2 {
log
.
error
(
"态势监测-事件告警-实时列表:"
,
e
);
JsonViewObject
.
newInstance
().
success
(
list
);
}
List
<
OptMonitoringVO
>
collect
=
list
.
stream
().
filter
(
vo
->
!
StringUtils
.
equalsIgnoreCase
(
"700"
,
vo
.
getType
())).
collect
(
Collectors
.
toList
());
List
<
OptMonitoringVO
>
collect
=
list
.
stream
().
filter
(
vo
->
!
StringUtils
.
equalsIgnoreCase
(
"700"
,
vo
.
getType
())
&&
!
StringUtils
.
equalsIgnoreCase
(
"708"
,
vo
.
getType
())).
collect
(
Collectors
.
toList
());
return
JsonViewObject
.
newInstance
().
success
(
collect
);
}
...
...
signal-optimize-service/src/main/java/net/wanji/opt/servicev2/implv2/TrendServiceV2Impl.java
View file @
c0651db2
...
...
@@ -361,15 +361,19 @@ public class TrendServiceV2Impl implements TrendServiceV2 {
private
String
getOptGreenResult
(
String
id
,
StringBuilder
sb
)
{
String
result
=
""
;
List
<
GreenLastOptResultDTO
>
greenLastOptResultDTOS
=
strategyGreenOptHistMapper
.
selectLastGreenOptResultList
();
for
(
GreenLastOptResultDTO
dto
:
greenLastOptResultDTOS
)
{
if
(
StringUtils
.
endsWithIgnoreCase
(
id
,
String
.
valueOf
(
dto
.
getGreenId
())))
{
Integer
controlMethod
=
dto
.
getControlMethod
();
if
(
0
>=
controlMethod
)
{
sb
.
append
(
"动态绿波"
).
append
(
"-"
).
append
(
"均衡调控"
).
append
(
"-"
).
append
(
"神思策略"
);
}
else
{
sb
.
append
(
"均衡调控"
).
append
(
"-"
).
append
(
"专家方案"
);
if
(!
CollectionUtils
.
isEmpty
(
greenLastOptResultDTOS
))
{
for
(
GreenLastOptResultDTO
dto
:
greenLastOptResultDTOS
)
{
if
(
StringUtils
.
endsWithIgnoreCase
(
id
,
String
.
valueOf
(
dto
.
getGreenId
())))
{
Integer
controlMethod
=
dto
.
getControlMethod
();
if
(
controlMethod
>=
0
)
{
sb
.
append
(
"动态绿波"
).
append
(
"-"
).
append
(
"均衡调控"
).
append
(
"-"
).
append
(
"神思策略"
);
}
else
{
sb
.
append
(
"均衡调控"
).
append
(
"-"
).
append
(
"专家方案"
);
}
}
}
}
else
{
sb
.
append
(
"动态绿波-专家方案"
);
}
result
=
sb
.
toString
();
return
result
;
...
...
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