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
9abe1678
Commit
9abe1678
authored
Feb 09, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
893b5c55
352466ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
CrossLaneDataHistPoExtend.java
...java/net/wanji/opt/po/base/CrossLaneDataHistPoExtend.java
+11
-1
GreenwaveHistMapper.xml
...service/src/main/resources/mapper/GreenwaveHistMapper.xml
+10
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/po/base/CrossLaneDataHistPoExtend.java
View file @
9abe1678
...
@@ -45,13 +45,17 @@ public class CrossLaneDataHistPoExtend {
...
@@ -45,13 +45,17 @@ public class CrossLaneDataHistPoExtend {
@ApiModelProperty
(
value
=
"交通流量(辆)"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"交通流量(辆)"
,
notes
=
""
)
private
Integer
flow
;
private
Integer
flow
;
@ApiModelProperty
(
value
=
"平均速度(km/h)"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"平均速度(km/h)"
,
notes
=
""
)
private
Double
speed
;
private
Double
speed
;
@ApiModelProperty
(
value
=
"停车次数"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"停车次数"
,
notes
=
""
)
private
Double
stopTimes
;
private
Double
stopTimes
;
@ApiModelProperty
(
value
=
"延误时间"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"延误时间"
,
notes
=
""
)
private
Integer
delayTime
;
private
Integer
delayTime
;
@ApiModelProperty
(
value
=
"饱和度"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"饱和度【强度】"
,
notes
=
""
)
private
Double
sturation
;
private
Double
sturation
;
@ApiModelProperty
(
value
=
"服务水平"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"服务水平"
,
notes
=
""
)
...
@@ -64,4 +68,10 @@ public class CrossLaneDataHistPoExtend {
...
@@ -64,4 +68,10 @@ public class CrossLaneDataHistPoExtend {
@ApiModelProperty
(
value
=
"时间轴"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"时间轴"
,
notes
=
""
)
public
String
timeAxis
;
public
String
timeAxis
;
@ApiModelProperty
(
value
=
"绿灯利用率"
,
notes
=
""
)
double
greenLightEfficiency
;
@ApiModelProperty
(
value
=
"空间占有率"
,
notes
=
""
)
double
vehicleLengthRatioMean
;
}
}
signal-optimize-service/src/main/resources/mapper/GreenwaveHistMapper.xml
View file @
9abe1678
...
@@ -266,6 +266,8 @@
...
@@ -266,6 +266,8 @@
round(AVG(delay_time),2) delay_time,
round(AVG(delay_time),2) delay_time,
round(AVG(traffic_index),2) traffic_index,
round(AVG(traffic_index),2) traffic_index,
round(AVG(sturation),4) sturation,
round(AVG(sturation),4) sturation,
round(AVG(green_light_efficiency),4) green_light_efficiency,
round(AVG(vehicle_length_ratio_mean),4) vehicle_length_ratio_mean,
group_concat(service_level) service_level
group_concat(service_level) service_level
FROM
FROM
(
(
...
@@ -288,6 +290,8 @@
...
@@ -288,6 +290,8 @@
null as turn_type,
null as turn_type,
null as service_level,
null as service_level,
traffic_index,
traffic_index,
green_light_efficiency,
null as vehicle_length_ratio_mean,
</when>
</when>
<!-- 转向级 -->
<!-- 转向级 -->
<when
test=
"objectType==2"
>
<when
test=
"objectType==2"
>
...
@@ -296,6 +300,8 @@
...
@@ -296,6 +300,8 @@
null as lane_no,
null as lane_no,
null as service_level,
null as service_level,
traffic_index,
traffic_index,
green_light_efficiency,
null as vehicle_length_ratio_mean,
</when>
</when>
<!-- 车道级 -->
<!-- 车道级 -->
<when
test=
"objectType==3"
>
<when
test=
"objectType==3"
>
...
@@ -304,6 +310,8 @@
...
@@ -304,6 +310,8 @@
t2.turn as turn_type,
t2.turn as turn_type,
null as service_level,
null as service_level,
null as traffic_index,
null as traffic_index,
green_light_efficiency,
vehicle_length_ratio_mean,
</when>
</when>
<!-- 路口级 -->
<!-- 路口级 -->
<when
test=
"objectType==4"
>
<when
test=
"objectType==4"
>
...
@@ -312,6 +320,8 @@
...
@@ -312,6 +320,8 @@
null as turn_type,
null as turn_type,
ifnull(service_level,'A') service_level,
ifnull(service_level,'A') service_level,
traffic_index,
traffic_index,
green_light_efficiency,
null as vehicle_length_ratio_mean,
</when>
</when>
<otherwise>
<otherwise>
</otherwise>
</otherwise>
...
...
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