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
f2520cc0
Commit
f2520cc0
authored
Jan 20, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
4f95c987
de0b467f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
EventServiceImpl.java
...ain/java/net/wanji/opt/service/impl/EventServiceImpl.java
+1
-1
GreenwaveHistMapper.xml
...service/src/main/resources/mapper/GreenwaveHistMapper.xml
+3
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/EventServiceImpl.java
View file @
f2520cc0
...
@@ -129,7 +129,7 @@ public class EventServiceImpl implements EventService {
...
@@ -129,7 +129,7 @@ public class EventServiceImpl implements EventService {
groupByType
.
forEach
((
type
,
valList2
)
->
{
groupByType
.
forEach
((
type
,
valList2
)
->
{
EventInfoSimplePo
tmp
=
null
;
EventInfoSimplePo
tmp
=
null
;
for
(
EventInfoSimplePo
po
:
valList2
)
{
for
(
EventInfoSimplePo
po
:
valList2
)
{
po
.
setDate
(
DateUtil
.
formatDate
(
po
.
getStartTime
(),
"M/d"
));
po
.
setDate
(
net
.
wanji
.
common
.
utils
.
tool
.
DateUtil
.
formatDate
(
po
.
getStartTime
(),
"M/d"
));
//合并时间重叠事件
//合并时间重叠事件
if
(
tmp
!=
null
)
{
if
(
tmp
!=
null
)
{
Date
agoStartTime
=
tmp
.
getStartTime
();
Date
agoStartTime
=
tmp
.
getStartTime
();
...
...
signal-optimize-service/src/main/resources/mapper/GreenwaveHistMapper.xml
View file @
f2520cc0
...
@@ -58,8 +58,9 @@
...
@@ -58,8 +58,9 @@
DATE_FORMAT( start_time, '%Y-%m-%d %H:%i:00' ) start_time,
DATE_FORMAT( start_time, '%Y-%m-%d %H:%i:00' ) start_time,
round(AVG(speed),2) speed,
round(AVG(speed),2) speed,
round(AVG(delay_time)) delay_time,
round(AVG(delay_time)) delay_time,
round(AVG(stop_times)) stop_times,
round(AVG(stop_times),2) stop_times,
round(AVG(trval_time)) trval_time
round(AVG(trval_time)) trval_time,
round(AVG(if(queue_length=-1,null,queue_length))) queue_length
FROM
FROM
t_greenwave_hist
t_greenwave_hist
where 1=1
where 1=1
...
...
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