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
49fdb10f
Commit
49fdb10f
authored
Jul 25, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 相位倒计时优化5
parent
dbdf0bb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
DTSignalStatusServiceImpl.java
.../wanji/utc/dt/service/impl/DTSignalStatusServiceImpl.java
+2
-1
No files found.
signal-utc-dt-service/src/main/java/net/wanji/utc/dt/service/impl/DTSignalStatusServiceImpl.java
View file @
49fdb10f
...
@@ -182,7 +182,7 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
...
@@ -182,7 +182,7 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
lightsStatusVO
.
setCrossId
(
crossId
);
lightsStatusVO
.
setCrossId
(
crossId
);
lightsStatusVO
.
setRunMode
(
controlModel
);
lightsStatusVO
.
setRunMode
(
controlModel
);
lightsStatusVO
.
setControlMode
(
controlModel
);
lightsStatusVO
.
setControlMode
(
controlModel
);
PhaseStageStatusPojo
phaseStageStatusPojo
=
n
ull
;
PhaseStageStatusPojo
phaseStageStatusPojo
=
n
ew
PhaseStageStatusPojo
()
;
if
(!
CollectionUtils
.
isEmpty
(
phaseStageStatusPojos
))
{
if
(!
CollectionUtils
.
isEmpty
(
phaseStageStatusPojos
))
{
phaseStageStatusPojo
=
phaseStageStatusPojos
.
get
(
0
);
phaseStageStatusPojo
=
phaseStageStatusPojos
.
get
(
0
);
}
}
...
@@ -222,6 +222,7 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
...
@@ -222,6 +222,7 @@ public class DTSignalStatusServiceImpl implements SignalStatusService {
lightsStatusVO
.
setCycleCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
lightsStatusVO
.
setCycleCountDown
(
phaseStageStatusPojo
.
getRemainTime
());
// 当相位剩余时间小于0是,运行的第二个阶段
// 当相位剩余时间小于0是,运行的第二个阶段
int
realRemainTime
=
phaseStageStatusPojo
.
getRemainTime
()
-
5
;
int
realRemainTime
=
phaseStageStatusPojo
.
getRemainTime
()
-
5
;
System
.
err
.
println
(
"==="
+
realRemainTime
);
if
(
realRemainTime
>
0
)
{
if
(
realRemainTime
>
0
)
{
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setPhaseId
(
String
.
valueOf
(
currentPhaseStageId
));
lightsStatusVO
.
setCyclePhaseCountDown
(
realRemainTime
);
lightsStatusVO
.
setCyclePhaseCountDown
(
realRemainTime
);
...
...
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