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
jinan
traffic-signal-platform
Commits
5f8f6033
Commit
5f8f6033
authored
Mar 28, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区域走势持续时长输出
parent
37ececdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
AnalysisProblemAreaDayServiceImpl.java
...judgeanalysis/impl/AnalysisProblemAreaDayServiceImpl.java
+3
-0
AnalysisProblemAreaDayMapper.xml
...ces/mapper/judgeanalysis/AnalysisProblemAreaDayMapper.xml
+2
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/servicev2/judgeanalysis/impl/AnalysisProblemAreaDayServiceImpl.java
View file @
5f8f6033
...
...
@@ -96,10 +96,13 @@ import java.util.stream.Collectors;
//提取数量属性
List
<
Integer
>
numberList
=
value
.
stream
().
map
(
AnalysisProblemCrossDay:
:
getEventNumber
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
durationList
=
value
.
stream
().
map
(
AnalysisProblemCrossDay:
:
getEventTotalTime
).
collect
(
Collectors
.
toList
());
Map
<
String
,
Object
>
mapList
=
new
HashMap
<>();
mapList
.
put
(
"eventType"
,
key
);
mapList
.
put
(
"eventLabel"
,
typeName
);
mapList
.
put
(
"list"
,
numberList
);
mapList
.
put
(
"durationList"
,
durationList
);
allList
.
add
(
mapList
);
}
...
...
signal-optimize-service/src/main/resources/mapper/judgeanalysis/AnalysisProblemAreaDayMapper.xml
View file @
5f8f6033
...
...
@@ -40,6 +40,7 @@
SELECT
dt,
sum( event_number ) AS event_number,
sum( event_total_time ) AS event_total_time,
t1.event_type,
t2.label AS typeName
FROM t_analysis_problem_cross_day t1
...
...
@@ -57,6 +58,7 @@
SELECT
dt,
sum( event_number ) AS event_number,
sum( event_total_time ) AS event_total_time,
t1.event_type,
t2.label AS typeName
FROM t_analysis_problem_green_day t1
...
...
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