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
9af057fb
Commit
9af057fb
authored
Dec 15, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2243b466
81ea3a8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
StaticInfoServiceImpl.java
...wanji/utc/hisense/service/impl/StaticInfoServiceImpl.java
+6
-5
No files found.
signal-utc-hisense-service/src/main/java/net/wanji/utc/hisense/service/impl/StaticInfoServiceImpl.java
View file @
9af057fb
...
...
@@ -497,7 +497,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
));
if
(
wjLightsDir
==
0
||
wjLightsTurn
==
0
){
if
(
wjLightsDir
==
0
&&
wjLightsTurn
==
0
){
continue
;
}
Integer
wjPerson
=
HisensePersonEntranceAndExitEnum
.
getWjperson
(
Integer
.
parseInt
(
turn
,
2
));
...
...
@@ -513,6 +513,7 @@ public class StaticInfoServiceImpl implements StaticInfoService {
}
else
if
(
wjLightsDir
==
7
)
{
crossLightsPO
.
setType
(
1
);
}
//key
String
lightMapKey
=
String
.
valueOf
(
wjLightsDir
).
concat
(
String
.
valueOf
(
wjLightsTurn
)).
concat
(
String
.
valueOf
(
crossLightsPO
.
getType
()));
if
(!
lightsMap
.
containsKey
(
lightMapKey
))
{
...
...
@@ -718,10 +719,10 @@ public class StaticInfoServiceImpl implements StaticInfoService {
//查询当前路口运行的方案
LocalDate
now
=
LocalDate
.
now
();
int
week
=
now
.
getDayOfWeek
().
getValue
();
if
(
week
==
7
)
{
//表中周日用0表示
week
=
0
;
}
//
if (week == 7) {
//
//表中周日用0表示
//
week = 0;
//
}
CrossNowSchemePO
baseCrossSchemePO
=
baseCrossSchemeMapper
.
selectByCrossIdAndWeek
(
crossId
,
week
);
if
(
ObjectUtil
.
isNotEmpty
(
baseCrossSchemePO
))
{
coordinationStatus
=
new
CoordinationStatus
();
...
...
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