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
signal
traffic-signal-platform
Commits
d07dc610
Commit
d07dc610
authored
May 06, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 态势监测-问题路口列表-添加相位空放统计
parent
1065f08c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+4
-2
AbnormalCrossStats.java
...ce/src/main/java/net/wanji/opt/vo/AbnormalCrossStats.java
+2
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
d07dc610
...
...
@@ -1594,6 +1594,7 @@ public class TrendServiceImpl implements TrendService {
Integer
unbalance
=
abnormalCrossStats
.
getUnbalance
();
Integer
congestion
=
abnormalCrossStats
.
getCongestion
();
Integer
spillover
=
abnormalCrossStats
.
getSpillover
();
Integer
phaseEmpty
=
abnormalCrossStats
.
getPhaseEmpty
();
for
(
AbnormalCrossListVO
abnormalCrossListVO
:
abnormalCrossListVOList
)
{
Integer
realtimeStatus
=
abnormalCrossListVO
.
getRealtimeStatus
();
if
(
realtimeStatus
==
0
)
{
...
...
@@ -1604,12 +1605,15 @@ public class TrendServiceImpl implements TrendService {
congestion
+=
1
;
}
else
if
(
realtimeStatus
==
3
)
{
spillover
+=
1
;
}
else
if
(
realtimeStatus
==
5
)
{
phaseEmpty
+=
1
;
}
}
abnormalCrossStats
.
setNormal
(
normal
);
abnormalCrossStats
.
setUnbalance
(
unbalance
);
abnormalCrossStats
.
setCongestion
(
congestion
);
abnormalCrossStats
.
setSpillover
(
spillover
);
abnormalCrossStats
.
setPhaseEmpty
(
phaseEmpty
);
abnormalCrossVO
.
setAbnormalCrossStats
(
abnormalCrossStats
);
}
...
...
@@ -1700,8 +1704,6 @@ public class TrendServiceImpl implements TrendService {
}
}
}
}
return
hotspotCrossVOS
;
}
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/AbnormalCrossStats.java
View file @
d07dc610
...
...
@@ -21,4 +21,6 @@ public class AbnormalCrossStats {
private
Integer
congestion
=
0
;
@ApiModelProperty
(
value
=
"溢出数量"
)
private
Integer
spillover
=
0
;
@ApiModelProperty
(
value
=
"相位空放数量"
)
private
Integer
phaseEmpty
=
0
;
}
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