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
27bf0d47
Commit
27bf0d47
authored
Mar 02, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b823ccb8
ebea1ef6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
HoloEventMapper.xml
...ize-service/src/main/resources/mapper/HoloEventMapper.xml
+4
-4
StaticInfoServiceImpl.java
...wanji/utc/hisense/service/impl/StaticInfoServiceImpl.java
+4
-0
No files found.
signal-optimize-service/src/main/resources/mapper/HoloEventMapper.xml
View file @
27bf0d47
...
...
@@ -211,10 +211,10 @@
sum( TIMESTAMPDIFF( SECOND, start_time, ifnull( end_time, now())) ) duration,
count(*) as count,
case
when #{timeType}=5 then DATE_FORMAT(
concat( date( start_time ), ' ', HOUR ( start_time ), ':', floor( MINUTE ( start_time ) / 10 ) * 10 ),
'%H:%i' )
when #{timeType}=1 then DATE_FORMAT(
concat( date( start_time ), ' ', HOUR ( start_time ), ':', floor( MINUTE ( start_time ) / 15 ) * 15 ),
'%H:%i' )
when #{timeType}=2 then DATE_FORMAT(
concat( date( start_time ), ' ', HOUR ( start_time ), ':', floor( MINUTE ( start_time ) / 30 ) * 30 ),
'%H:%i' )
when #{timeType}=3 then DATE_FORMAT(
start_time, '%H:00
' )
when #{timeType}=5 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 10 - ( MINUTE ( start_time ) % 10 )) % 10 MINUTE ),
'%H:%i' )
when #{timeType}=1 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 15 - ( MINUTE ( start_time ) % 15 )) % 15 MINUTE ),
'%H:%i' )
when #{timeType}=2 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 30 - ( MINUTE ( start_time ) % 30 )) % 30 MINUTE ),
'%H:%i' )
when #{timeType}=3 then DATE_FORMAT(
DATE_ADD( start_time, INTERVAL ( 60 - ( MINUTE ( start_time ) % 60 )) % 60 MINUTE ), '%H:%i
' )
end as time_axis_start
FROM
t_event_info
...
...
signal-utc-hisense-service/src/main/java/net/wanji/utc/hisense/service/impl/StaticInfoServiceImpl.java
View file @
27bf0d47
...
...
@@ -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