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
a363a16b
Commit
a363a16b
authored
Jan 25, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 优化转向设置
parent
1f444089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ControlCommandStrategyServiceImpl.java
...rvice/control/impl/ControlCommandStrategyServiceImpl.java
+5
-4
No files found.
signal-utc-service/src/main/java/net/wanji/utc/service/control/impl/ControlCommandStrategyServiceImpl.java
View file @
a363a16b
...
@@ -357,14 +357,15 @@ public class ControlCommandStrategyServiceImpl implements ControlCommandStrategy
...
@@ -357,14 +357,15 @@ public class ControlCommandStrategyServiceImpl implements ControlCommandStrategy
crossLightsPO
.
setType
(
1
);
crossLightsPO
.
setType
(
1
);
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
1
))
{
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
1
))
{
crossLightsPO
.
setType
(
2
);
// 1箭头 2圆饼
crossLightsPO
.
setType
(
2
);
// 1箭头 2圆饼
crossLightsPO
.
setTurn
(
2
);
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
2
))
{
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
2
))
{
crossLightsPO
.
setTurn
(
1
);
// 1箭头 2圆饼
crossLightsPO
.
setTurn
(
1
);
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
3
))
{
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
3
))
{
crossLightsPO
.
setTurn
(
2
);
// 1箭头 2圆饼
crossLightsPO
.
setTurn
(
2
);
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
4
))
{
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
4
))
{
crossLightsPO
.
setTurn
(
3
);
// 1箭头 2圆饼
crossLightsPO
.
setTurn
(
3
);
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
20
))
{
}
else
if
(
Objects
.
equals
(
lightsPO
.
getType
(),
20
))
{
crossLightsPO
.
setType
(
3
);
// 1箭头 2圆饼
crossLightsPO
.
setType
(
3
);
crossLightsPO
.
setTurn
(
20
);
crossLightsPO
.
setTurn
(
20
);
}
}
crossLightsMapper
.
insertOne
(
crossLightsPO
);
crossLightsMapper
.
insertOne
(
crossLightsPO
);
...
...
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