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
32bb47a5
Commit
32bb47a5
authored
Feb 27, 2025
by
zhouleilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决同步海信信号机静态信息时,灯组重复问题
parent
9a62f7df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
StaticInfoServiceImpl.java
...wanji/utc/hisense/service/impl/StaticInfoServiceImpl.java
+4
-0
No files found.
signal-utc-hisense-service/src/main/java/net/wanji/utc/hisense/service/impl/StaticInfoServiceImpl.java
View file @
32bb47a5
...
...
@@ -488,6 +488,9 @@ public class StaticInfoServiceImpl implements StaticInfoService {
for
(
RingPhaseDTO
phaseDTO
:
ringPhaseList
)
{
Integer
phaseId
=
phaseDTO
.
getPhaseId
();
long
channe
=
Long
.
valueOf
(
channelDim
[
phaseId
-
1
]);
if
(
channe
==
0L
){
continue
;
}
String
binaryString
=
Long
.
toBinaryString
(
channe
);
//获取方向转向分组
List
<
String
>
binaryList
=
CommonUtils
.
groupStringFromRight
(
binaryString
);
...
...
@@ -498,6 +501,7 @@ public class StaticInfoServiceImpl implements StaticInfoService {
String
turn
=
readUtf8Line
.
substring
(
3
);
Integer
wjLightsDir
=
HiseseDirEnum
.
getWjLightsDir
(
Integer
.
parseInt
(
dir
,
2
));
Integer
wjLightsTurn
=
HisenseTurnEnum
.
getWjLightsTurn
(
Integer
.
parseInt
(
turn
,
2
));
log
.
error
(
"readUtf8Line = {},dir={},turn={},wjLightsDir={},wjLightsTurn={}"
,
readUtf8Line
,
dir
,
turn
,
wjLightsDir
,
wjLightsTurn
);
if
(
wjLightsDir
==
0
&&
wjLightsTurn
==
0
){
continue
;
}
...
...
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