Commit 4cdf2cdd authored by duanruiming's avatar duanruiming

[update] 添加绿灯清空率

parent 5f95ca25
......@@ -154,5 +154,10 @@ public class CrossDataRealtimePO {
* 平均未清空车辆数量
*/
@ApiModelProperty(value = "平均未清空车辆数量", notes = "")
private Double notClearCarNums;
private Integer notClearCarNums;
/**
* 绿灯有效利用率
*/
@ApiModelProperty(value = "绿灯有效利用率", notes = "")
private Double greenLightEfficiency;
}
......@@ -31,13 +31,14 @@
<result column="clear_rate" property="clearRate"></result>
<result column="load_balance" property="loadBalance"></result>
<result column="not_clear_car_nums" property="notClearCarNums"></result>
<result column="green_light_efficiency" property="greenLightEfficiency"></result>
</resultMap>
<sql id="Base_Column_List">
cross_id, status, type, traffic_index, start_time, duration, is_unbalance, is_spillover, is_congestion,
unbalance_index, spillover_index, congestion_index, unbalance_dirs, spillover_dirs, congestion_dirs,
flow, flow_rate, speed, queue_length, stop_times, delay_time, sturation, batch_time, gmt_create, gmt_modified,
clear_rate,load_balance,not_clear_car_nums
clear_rate,load_balance,not_clear_car_nums,green_light_efficiency
</sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataHistPO">
......@@ -48,7 +49,7 @@
(#{entity.crossId},#{entity.status},#{entity.type},#{entity.trafficIndex},#{entity.startTime},#{entity.duration},#{entity.isUnbalance},#{entity.isSpillover},#{entity.isCongestion},
#{entity.unbalanceIndex},#{entity.spilloverIndex},#{entity.congestionIndex},#{entity.unbalanceDirs},#{entity.spilloverDirs},#{entity.congestionDirs},
#{entity.flow},#{entity.flowRate},#{entity.speed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.clearRate},#{entity.loadBalance},#{entity.notClearCarNums})
#{entity.clearRate},#{entity.loadBalance},#{entity.notClearCarNums},#{entity.greenLightEfficiency})
</foreach>
</insert>
......
......@@ -32,13 +32,14 @@
<result column="clear_rate" property="clearRate"></result>
<result column="load_balance" property="loadBalance"></result>
<result column="not_clear_car_nums" property="notClearCarNums"></result>
<result column="green_light_efficiency" property="greenLightEfficiency"></result>
</resultMap>
<sql id="Base_Column_List">
cross_id,status,type,traffic_index,start_time,duration,is_unbalance,is_spillover,is_congestion,unbalance_index,
spillover_index,congestion_index,unbalance_dirs,spillover_dirs,congestion_dirs,flow,flow_rate,speed,
queue_length,stop_times,delay_time,sturation,batch_time,gmt_create,gmt_modified,clear_rate,end_time,
load_balance,not_clear_car_nums
load_balance,not_clear_car_nums,green_light_efficiency
</sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataRealtimePO">
......@@ -49,7 +50,7 @@
(#{entity.crossId},#{entity.status},#{entity.type},#{entity.trafficIndex},#{entity.startTime},#{entity.duration},#{entity.isSpillover},#{entity.isSpillover},#{entity.isCongestion},
#{entity.unbalanceIndex},#{entity.spilloverIndex},#{entity.congestionIndex},#{entity.unbalanceDirs},#{entity.spilloverDirs},#{entity.congestionDirs},
#{entity.flow},#{entity.flowRate},#{entity.speed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.clearRate},#{entity.endTime},#{entity.loadBalance},#{entity.notClearCarNums})
#{entity.clearRate},#{entity.endTime},#{entity.loadBalance},#{entity.notClearCarNums},#{entity.greenLightEfficiency})
</foreach>
</insert>
......
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