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
9b8a98be
Commit
9b8a98be
authored
Apr 03, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 中心优化和时间表为中心控制
parent
c9d68dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SituationDetectionServiceImpl.java
...wanji/web/service/impl/SituationDetectionServiceImpl.java
+2
-2
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/SituationDetectionServiceImpl.java
View file @
9b8a98be
...
...
@@ -632,7 +632,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
if
(!
CollectionUtils
.
isEmpty
(
tCrossControlHists
))
{
if
(
Objects
.
nonNull
(
operationMode
))
{
if
(
operationMode
==
1
)
{
//中心优化
List
<
TCrossControlHist
>
centerOptList
=
tCrossControlHists
.
stream
().
filter
(
tCrossControlHist
->
tCrossControlHist
.
getType
()
==
5
).
collect
(
Collectors
.
toList
());
List
<
TCrossControlHist
>
centerOptList
=
tCrossControlHists
.
stream
().
filter
(
tCrossControlHist
->
tCrossControlHist
.
getType
()
==
5
||
tCrossControlHist
.
getType
()
==
1
).
collect
(
Collectors
.
toList
());
BeanListUtils
.
populateList
(
centerOptList
,
signalOperationModeVOS
,
SignalOperationModeVO
.
class
);
}
if
(
operationMode
==
2
)
{
// 手动控制
...
...
@@ -678,7 +678,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
for
(
SignalOperationModeVO
modeVO
:
signalOperationModeVOS
)
{
Integer
type
=
modeVO
.
getType
();
if
(
Objects
.
nonNull
(
type
))
{
if
(
type
==
5
)
{
if
(
type
==
1
||
type
==
5
)
{
centerOptCount
++;
}
if
(
type
==
6
)
{
// todo 提供测试数据,边缘优化还没有
...
...
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