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
48a2b970
Commit
48a2b970
authored
Dec 10, 2024
by
zhouleilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
信控调优平台-方案优化对比,相位时间优化
parent
0b8eb61f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
PlanSendServiceImpl.java
.../java/net/wanji/web/service/impl/PlanSendServiceImpl.java
+8
-1
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/PlanSendServiceImpl.java
View file @
48a2b970
...
@@ -696,7 +696,14 @@ public class PlanSendServiceImpl implements PlanSendService {
...
@@ -696,7 +696,14 @@ public class PlanSendServiceImpl implements PlanSendService {
Integer
phaseTime
=
optLogPO
.
getPhaseTime
();
Integer
phaseTime
=
optLogPO
.
getPhaseTime
();
//绿灯时间
//绿灯时间
int
greenTime
=
phaseTime
-
yellowTime
-
redTime
;
int
greenTime
=
phaseTime
-
yellowTime
-
redTime
;
if
(
greenTime
<=
0
){
optPhase
.
setGreenTime
(
phaseTime
);
optPhase
.
setYellowTime
(
0
);
optPhase
.
setRedTime
(
0
);
}
else
{
optPhase
.
setGreenTime
(
greenTime
);
optPhase
.
setGreenTime
(
greenTime
);
}
optPhaseList
.
add
(
optPhase
);
optPhaseList
.
add
(
optPhase
);
}
}
}
}
...
...
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