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
aedba3f0
Commit
aedba3f0
authored
Jul 25, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 相位倒计时优化4
parent
6dcd366d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DTSignalStatusServiceImpl.java
.../wanji/utc/dt/service/impl/DTSignalStatusServiceImpl.java
+3
-3
No files found.
signal-utc-dt-service/src/main/java/net/wanji/utc/dt/service/impl/DTSignalStatusServiceImpl.java
View file @
aedba3f0
...
@@ -221,7 +221,7 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
...
@@ -221,7 +221,7 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
lightsStatusVO
.
setCycleLen
(
schemeInfoPojo
.
getCycle
());
lightsStatusVO
.
setCycleLen
(
schemeInfoPojo
.
getCycle
());
lightsStatusVO
.
setCycleCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
lightsStatusVO
.
setCycleCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
// 当相位剩余时间小于0是,运行的第二个阶段
// 当相位剩余时间小于0是,运行的第二个阶段
int
realRemainTime
=
phaseStageStatusPojo
.
getRemainTime
()
-
redTime
;
int
realRemainTime
=
phaseStageStatusPojo
.
getRemainTime
()
-
(
phaseStageTime
-
redTime
)
;
if
(
realRemainTime
>=
0
)
{
if
(
realRemainTime
>=
0
)
{
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setCyclePhaseCountDown
(
realRemainTime
);
lightsStatusVO
.
setCyclePhaseCountDown
(
realRemainTime
);
...
@@ -232,8 +232,8 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
...
@@ -232,8 +232,8 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
}
else
{
}
else
{
nextPhaseStageInfoPojo
=
phaseStageInfoPojos
.
get
(
0
);
nextPhaseStageInfoPojo
=
phaseStageInfoPojos
.
get
(
0
);
}
}
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
nextPhaseStageInfoPojo
.
getPhaseStageId
()
));
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setCyclePhaseCountDown
(
phaseStageStatusPojo
.
getRemainTime
()
+
redTime
);
lightsStatusVO
.
setCyclePhaseCountDown
(
phaseStageStatusPojo
.
getRemainTime
()
+
(
phaseStageTime
-
redTime
)
);
}
}
}
}
}
}
...
...
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