Commit 352466ba authored by zhoushiguang's avatar zhoushiguang

增加字段输出

parent 08189cb6
...@@ -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;
} }
...@@ -262,6 +262,8 @@ ...@@ -262,6 +262,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
( (
...@@ -284,6 +286,8 @@ ...@@ -284,6 +286,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">
...@@ -292,6 +296,8 @@ ...@@ -292,6 +296,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">
...@@ -300,6 +306,8 @@ ...@@ -300,6 +306,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">
...@@ -308,6 +316,8 @@ ...@@ -308,6 +316,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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment