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
465e0837
Commit
465e0837
authored
Jul 25, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 相位倒计时优化7
parent
85159d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
DTSignalStatusServiceImpl.java
.../wanji/utc/dt/service/impl/DTSignalStatusServiceImpl.java
+5
-4
No files found.
signal-utc-dt-service/src/main/java/net/wanji/utc/dt/service/impl/DTSignalStatusServiceImpl.java
View file @
465e0837
...
@@ -220,18 +220,19 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
...
@@ -220,18 +220,19 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
lightsStatusVO
.
setSchemeId
(
String
.
valueOf
(
currentSchemeId
));
lightsStatusVO
.
setSchemeId
(
String
.
valueOf
(
currentSchemeId
));
lightsStatusVO
.
setCycleLen
(
schemeInfoPojo
.
getCycle
());
lightsStatusVO
.
setCycleLen
(
schemeInfoPojo
.
getCycle
());
lightsStatusVO
.
setCycleCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
lightsStatusVO
.
setCycleCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
// 当
相位剩余时间小于0是,运行的第二个阶段
// 当
运行时间小于9时,
int
realRemainTime
=
phaseStageStatusPojo
.
getRemainTime
();
int
realRemainTime
=
phaseStageStatusPojo
.
getRemainTime
();
Integer
runningTime
=
phaseStageStatusPojo
.
getRunningTime
();
System
.
err
.
println
(
"==="
+
realRemainTime
);
System
.
err
.
println
(
"==="
+
realRemainTime
);
if
(
r
ealRemainTime
>
9
)
{
if
(
r
unningTime
<
redTime
)
{
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setCyclePhaseCountDown
(
realRemainTime
);
lightsStatusVO
.
setCyclePhaseCountDown
(
realRemainTime
);
}
else
{
}
else
{
PhaseStageInfoPojo
nextPhaseStageInfoPojo
=
null
;
PhaseStageInfoPojo
nextPhaseStageInfoPojo
=
null
;
if
(
l
<
phaseStageInfoPojos
.
size
()
)
{
if
(
l
==
0
)
{
nextPhaseStageInfoPojo
=
phaseStageInfoPojos
.
get
(
l
);
nextPhaseStageInfoPojo
=
phaseStageInfoPojos
.
get
(
l
);
}
else
{
}
else
{
nextPhaseStageInfoPojo
=
phaseStageInfoPojos
.
get
(
0
);
nextPhaseStageInfoPojo
=
phaseStageInfoPojos
.
get
(
phaseStageInfoPojos
.
size
()
-
1
);
}
}
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
nextPhaseStageInfoPojo
.
getPhaseStageId
()));
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
nextPhaseStageInfoPojo
.
getPhaseStageId
()));
lightsStatusVO
.
setCyclePhaseCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
lightsStatusVO
.
setCyclePhaseCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
...
...
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