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
ca0a46e3
Commit
ca0a46e3
authored
Jan 14, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场景详细评价平均指标
parent
b141f49a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
46 deletions
+128
-46
CrossLaneDataHistPoExtend.java
...java/net/wanji/opt/po/base/CrossLaneDataHistPoExtend.java
+2
-2
GreenwaveHistProviderImpl.java
...net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
+120
-38
GreenwaveHistMapper.xml
...service/src/main/resources/mapper/GreenwaveHistMapper.xml
+6
-6
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/po/base/CrossLaneDataHistPoExtend.java
View file @
ca0a46e3
...
@@ -18,8 +18,8 @@ public class CrossLaneDataHistPoExtend {
...
@@ -18,8 +18,8 @@ public class CrossLaneDataHistPoExtend {
@ApiModelProperty
(
name
=
"路口编号"
,
notes
=
""
)
@ApiModelProperty
(
name
=
"路口编号"
,
notes
=
""
)
private
String
crossId
;
private
String
crossId
;
//车道ID
//车道ID
@ApiModelProperty
(
value
=
"车道
ID
"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"车道
号
"
,
notes
=
""
)
private
String
laneId
;
private
Integer
laneNo
;
//方向
//方向
@ApiModelProperty
(
value
=
"方向"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"方向"
,
notes
=
""
)
private
Integer
dirType
;
private
Integer
dirType
;
...
...
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
View file @
ca0a46e3
This diff is collapsed.
Click to expand it.
signal-optimize-service/src/main/resources/mapper/GreenwaveHistMapper.xml
View file @
ca0a46e3
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
resultType=
"net.wanji.opt.po.base.CrossLaneDataHistPoExtend"
>
resultType=
"net.wanji.opt.po.base.CrossLaneDataHistPoExtend"
>
SELECT MIN(ifnull(t.unit_time,#{startDate})) start_time,
SELECT MIN(ifnull(t.unit_time,#{startDate})) start_time,
cross_id ,
cross_id ,
lane_
id
,
lane_
no
,
dir_type ,
dir_type ,
turn_type ,
turn_type ,
SUM(flow) flow,
SUM(flow) flow,
...
@@ -278,7 +278,7 @@
...
@@ -278,7 +278,7 @@
<!-- 方向级 -->
<!-- 方向级 -->
<when
test=
"objectType==1"
>
<when
test=
"objectType==1"
>
dir_type,
dir_type,
null as lane_
id
,
null as lane_
no
,
null as turn_type,
null as turn_type,
null as service_level,
null as service_level,
</when>
</when>
...
@@ -286,19 +286,19 @@
...
@@ -286,19 +286,19 @@
<when
test=
"objectType==2"
>
<when
test=
"objectType==2"
>
t.in_dir+1 as dir_type,
t.in_dir+1 as dir_type,
t.turn_type,
t.turn_type,
null as lane_
id
,
null as lane_
no
,
null as service_level,
null as service_level,
</when>
</when>
<!-- 车道级 -->
<!-- 车道级 -->
<when
test=
"objectType==3"
>
<when
test=
"objectType==3"
>
t
.id as lane_id
,
t
2.sort as lane_no
,
t2.dir as dir_type,
t2.dir as dir_type,
t2.turn as turn_type,
t2.turn as turn_type,
null as service_level,
null as service_level,
</when>
</when>
<!-- 路口级 -->
<!-- 路口级 -->
<when
test=
"objectType==4"
>
<when
test=
"objectType==4"
>
null as lane_
id
,
null as lane_
no
,
null as dir_type,
null as dir_type,
null as turn_type,
null as turn_type,
ifnull(service_level,'A') service_level,
ifnull(service_level,'A') service_level,
...
@@ -352,7 +352,7 @@
...
@@ -352,7 +352,7 @@
</when>
</when>
<!-- 车道级 -->
<!-- 车道级 -->
<when
test=
"objectType==3"
>
<when
test=
"objectType==3"
>
GROUP BY t.cross_id,t.lane_
id
,t.dir_type,t.turn_type,unit_time
GROUP BY t.cross_id,t.lane_
no
,t.dir_type,t.turn_type,unit_time
</when>
</when>
<!-- 路口级 -->
<!-- 路口级 -->
<when
test=
"objectType==4"
>
<when
test=
"objectType==4"
>
...
...
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