Commit df81ebd5 authored by duanruiming's avatar duanruiming

[update] 微观大数据平台-周期时间空间占有率;异常优化

parent a9a1ddb7
......@@ -1315,8 +1315,8 @@ public class TrendServiceImpl implements TrendService {
element.setQueueNums(dto.getQueueNums());
element.setCarNums(dto.getCarNums());
element.setVehicleLengthRatio(Math.round(dto.getVehicleLengthRatio() * 100.0) / 100.0);
element.setVehicleNumsRatio(Math.round(dto.getVehicleNumsRatio() * 100.0) / 100.0);
element.setVehicleLengthRatio(Math.round(dto.getVehicleLengthRatio() * 100.0));
element.setVehicleNumsRatio(Math.round(dto.getVehicleNumsRatio() * 100.0));
element.setSpeed(Math.round(dto.getMeanV() * 100.0) / 100.0);
element.setHeadSpeed(Math.round(dto.getStartV() * 100.0) / 100.0);
element.setMailSpeed(Math.round(dto.getEndV() * 100.0) / 100.0);
......
......@@ -43,6 +43,8 @@
<result column="traffic_flow_A" property="trafficFlowA"></result>
<result column="traffic_flow_B" property="trafficFlowB"></result>
<result column="traffic_flow_C" property="trafficFlowC"></result>
<result column="vehicle_length_ratio_mean" property="vehicleLengthRatioMean"></result>
<result column="time_occupancy" property="timeOccupancy"></result>
</resultMap>
<sql id="Base_Column_List">
......@@ -50,7 +52,8 @@
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,green_light_efficiency,effusion_rate,
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,non_motor_flow,v_85,traffic_flow_A,traffic_flow_B,traffic_flow_C
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,non_motor_flow,v_85,
traffic_flow_A,traffic_flow_B,traffic_flow_C,vehicle_length_ratio_mean,time_occupancy
</sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataHistPO">
......@@ -63,7 +66,8 @@
#{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.greenLightEfficiency},#{entity.effusionRate},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},
#{entity.nonMotorFlow},#{entity.v85},#{entity.trafficFlowA},#{entity.trafficFlowB},#{entity.trafficFlowC})
#{entity.nonMotorFlow},#{entity.v85},#{entity.trafficFlowA},#{entity.trafficFlowB},
#{entity.trafficFlowC},#{entity.vehicleLengthRatioMean},#{entity.timeOccupancy})
</foreach>
</insert>
......
......@@ -43,6 +43,8 @@
<result column="traffic_flow_A" property="trafficFlowA"></result>
<result column="traffic_flow_B" property="trafficFlowB"></result>
<result column="traffic_flow_C" property="trafficFlowC"></result>
<result column="vehicle_length_ratio_mean" property="vehicleLengthRatioMean"></result>
<result column="time_occupancy" property="timeOccupancy"></result>
</resultMap>
<sql id="Base_Column_List">
......@@ -50,7 +52,8 @@
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,green_light_efficiency,effusion_rate,
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,non_motor_flow,v_85,traffic_flow_A,traffic_flow_B,traffic_flow_C
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,non_motor_flow,v_85,
traffic_flow_A,traffic_flow_B,traffic_flow_C,vehicle_length_ratio_mean,time_occupancy
</sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataRealtimePO">
......@@ -63,7 +66,8 @@
#{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.greenLightEfficiency},#{entity.effusionRate},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},
#{entity.nonMotorFlow},#{entity.v85},#{entity.trafficFlowA},#{entity.trafficFlowB},#{entity.trafficFlowC})
#{entity.nonMotorFlow},#{entity.v85},#{entity.trafficFlowA},#{entity.trafficFlowB},#{entity.trafficFlowC},
,#{entity.vehicleLengthRatioMean},#{entity.timeOccupancy}))
</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