Commit d0568ff5 authored by duanruiming's avatar duanruiming

[update] 数据实时表添加开始日期

parent d52e65f0
...@@ -36,7 +36,7 @@ public class DataCenterProcessTask { ...@@ -36,7 +36,7 @@ public class DataCenterProcessTask {
/** /**
* @description 收到数据中心kafka中的实时数据插入实时数据表、实时历史表 * @description 收到数据中心kafka中的实时数据插入实时数据表、实时历史表
* @param [] * @param
* @return void * @return void
*/ */
...@@ -91,6 +91,5 @@ public class DataCenterProcessTask { ...@@ -91,6 +91,5 @@ public class DataCenterProcessTask {
crossLaneDataHistMapper.insertBatch(crossLaneDataHistPOS); crossLaneDataHistMapper.insertBatch(crossLaneDataHistPOS);
} }
} }
} }
} }
...@@ -24,12 +24,13 @@ ...@@ -24,12 +24,13 @@
<result column="batch_time" property="batchTime"></result> <result column="batch_time" property="batchTime"></result>
<result column="gmt_create" property="gmtCreate"></result> <result column="gmt_create" property="gmtCreate"></result>
<result column="gmt_modified" property="gmtModified"></result> <result column="gmt_modified" property="gmtModified"></result>
<result column="start_time" property="startTime"></result>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, cross_id, flow, speed, in_speed, out_speed, queue_length, stop_times, delay_time, capacity, sturation, id, cross_id, flow, speed, in_speed, out_speed, queue_length, stop_times, delay_time, capacity, sturation,
vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified, vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified,
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,start_time
</sql> </sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossLaneDataHistPO"> <insert id="insertBatch" parameterType="net.wanji.databus.po.CrossLaneDataHistPO">
...@@ -39,7 +40,7 @@ ...@@ -39,7 +40,7 @@
<foreach collection="list" item="entity" separator=","> <foreach collection="list" item="entity" separator=",">
(#{entity.id},#{entity.crossId},#{entity.flow},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.capacity},#{entity.sturation}, (#{entity.id},#{entity.crossId},#{entity.flow},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.capacity},#{entity.sturation},
#{entity.vehheadDist},#{entity.vehheadTime},#{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified}, #{entity.vehheadDist},#{entity.vehheadTime},#{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate}) #{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},#{entity.startTime})
</foreach> </foreach>
</insert> </insert>
......
...@@ -24,12 +24,13 @@ ...@@ -24,12 +24,13 @@
<result column="batch_time" property="batchTime"></result> <result column="batch_time" property="batchTime"></result>
<result column="gmt_create" property="gmtCreate"></result> <result column="gmt_create" property="gmtCreate"></result>
<result column="gmt_modified" property="gmtModified"></result> <result column="gmt_modified" property="gmtModified"></result>
<result column="start_time" property="startTime"></result>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, cross_id, flow, speed, in_speed, out_speed, queue_length, stop_times, delay_time, capacity, sturation, id, cross_id, flow, speed, in_speed, out_speed, queue_length, stop_times, delay_time, capacity, sturation,
vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified, vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified,
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,start_time
</sql> </sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossLaneDataRealTimePO"> <insert id="insertBatch" parameterType="net.wanji.databus.po.CrossLaneDataRealTimePO">
...@@ -39,7 +40,7 @@ ...@@ -39,7 +40,7 @@
<foreach collection="list" item="entity" separator=","> <foreach collection="list" item="entity" separator=",">
(#{entity.id},#{entity.crossId},#{entity.flow},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.capacity},#{entity.sturation}, (#{entity.id},#{entity.crossId},#{entity.flow},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.capacity},#{entity.sturation},
#{entity.vehheadDist},#{entity.vehheadTime},#{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified}, #{entity.vehheadDist},#{entity.vehheadTime},#{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate}) #{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},#{entity.startTime})
</foreach> </foreach>
</insert> </insert>
......
...@@ -28,12 +28,13 @@ ...@@ -28,12 +28,13 @@
<result column="batch_time" property="batchTime"></result> <result column="batch_time" property="batchTime"></result>
<result column="gmt_create" property="gmtCreate"></result> <result column="gmt_create" property="gmtCreate"></result>
<result column="gmt_modified" property="gmtModified"></result> <result column="gmt_modified" property="gmtModified"></result>
<result column="start_time" property="startTime"></result>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, turn_type, in_dir, out_dir, cross_id, flow, status, traffic_index, speed, in_speed, out_speed, queue_length, id, turn_type, in_dir, out_dir, cross_id, flow, status, traffic_index, speed, in_speed, out_speed, queue_length,
stop_times, delay_time, sturation, vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified, stop_times, delay_time, sturation, vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified,
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,start_time
</sql> </sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossTurnDataRealtimePO"> <insert id="insertBatch" parameterType="net.wanji.databus.po.CrossTurnDataRealtimePO">
...@@ -45,7 +46,7 @@ ...@@ -45,7 +46,7 @@
#{entity.status},#{entity.trafficIndex},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed}, #{entity.status},#{entity.trafficIndex},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},
#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.vehheadDist},#{entity.vehheadTime}, #{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.vehheadDist},#{entity.vehheadTime},
#{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified}, #{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate}) #{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},#{entity.startTime})
</foreach> </foreach>
</insert> </insert>
......
...@@ -28,12 +28,13 @@ ...@@ -28,12 +28,13 @@
<result column="three_stop_rate" property="threeStopRate"></result> <result column="three_stop_rate" property="threeStopRate"></result>
<result column="gmt_create" property="gmtCreate"></result> <result column="gmt_create" property="gmtCreate"></result>
<result column="gmt_modified" property="gmtModified"></result> <result column="gmt_modified" property="gmtModified"></result>
<result column="start_time" property="startTime"></result>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, turn_type, in_dir, out_dir, cross_id, flow, status, traffic_index, speed, in_speed, out_speed, queue_length, id, turn_type, in_dir, out_dir, cross_id, flow, status, traffic_index, speed, in_speed, out_speed, queue_length,
stop_times, delay_time, sturation, vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified, stop_times, delay_time, sturation, vehhead_dist, vehhead_time, quality, batch_time, gmt_create, gmt_modified,
no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate no_stop_rate,one_stop_rate,two_stop_rate,three_stop_rate,start_time
</sql> </sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossTurnDataRealtimePO"> <insert id="insertBatch" parameterType="net.wanji.databus.po.CrossTurnDataRealtimePO">
...@@ -45,7 +46,7 @@ ...@@ -45,7 +46,7 @@
#{entity.status},#{entity.trafficIndex},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed}, #{entity.status},#{entity.trafficIndex},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},
#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.vehheadDist},#{entity.vehheadTime}, #{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.vehheadDist},#{entity.vehheadTime},
#{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified}, #{entity.quality},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate}) #{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},#{entity.startTime})
</foreach> </foreach>
</insert> </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