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
d0568ff5
Commit
d0568ff5
authored
Sep 01, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 数据实时表添加开始日期
parent
d52e65f0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
DataCenterProcessTask.java
...c/main/java/net/wanji/opt/task/DataCenterProcessTask.java
+1
-2
CrossLaneDataHistMapper.xml
...bus/src/main/resources/mapper/CrossLaneDataHistMapper.xml
+3
-2
CrossLaneDataRealTimeMapper.xml
...src/main/resources/mapper/CrossLaneDataRealTimeMapper.xml
+3
-2
CrossTurnDataHistMapper.xml
...bus/src/main/resources/mapper/CrossTurnDataHistMapper.xml
+3
-2
CrossTurnDataRealtimeMapper.xml
...src/main/resources/mapper/CrossTurnDataRealtimeMapper.xml
+3
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/task/DataCenterProcessTask.java
View file @
d0568ff5
...
...
@@ -36,7 +36,7 @@ public class DataCenterProcessTask {
/**
* @description 收到数据中心kafka中的实时数据插入实时数据表、实时历史表
* @param
[]
* @param
* @return void
*/
...
...
@@ -91,6 +91,5 @@ public class DataCenterProcessTask {
crossLaneDataHistMapper
.
insertBatch
(
crossLaneDataHistPOS
);
}
}
}
}
wj-databus/src/main/resources/mapper/CrossLaneDataHistMapper.xml
View file @
d0568ff5
...
...
@@ -24,12 +24,13 @@
<result
column=
"batch_time"
property=
"batchTime"
></result>
<result
column=
"gmt_create"
property=
"gmtCreate"
></result>
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"start_time"
property=
"startTime"
></result>
</resultMap>
<sql
id=
"Base_Column_List"
>
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,
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>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossLaneDataHistPO"
>
...
...
@@ -39,7 +40,7 @@
<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.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>
</insert>
...
...
wj-databus/src/main/resources/mapper/CrossLaneDataRealTimeMapper.xml
View file @
d0568ff5
...
...
@@ -24,12 +24,13 @@
<result
column=
"batch_time"
property=
"batchTime"
></result>
<result
column=
"gmt_create"
property=
"gmtCreate"
></result>
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"start_time"
property=
"startTime"
></result>
</resultMap>
<sql
id=
"Base_Column_List"
>
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,
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>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossLaneDataRealTimePO"
>
...
...
@@ -39,7 +40,7 @@
<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.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>
</insert>
...
...
wj-databus/src/main/resources/mapper/CrossTurnDataHistMapper.xml
View file @
d0568ff5
...
...
@@ -28,12 +28,13 @@
<result
column=
"batch_time"
property=
"batchTime"
></result>
<result
column=
"gmt_create"
property=
"gmtCreate"
></result>
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"start_time"
property=
"startTime"
></result>
</resultMap>
<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,
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>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossTurnDataRealtimePO"
>
...
...
@@ -45,7 +46,7 @@
#{entity.status},#{entity.trafficIndex},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},
#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{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>
</insert>
...
...
wj-databus/src/main/resources/mapper/CrossTurnDataRealtimeMapper.xml
View file @
d0568ff5
...
...
@@ -28,12 +28,13 @@
<result
column=
"three_stop_rate"
property=
"threeStopRate"
></result>
<result
column=
"gmt_create"
property=
"gmtCreate"
></result>
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"start_time"
property=
"startTime"
></result>
</resultMap>
<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,
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>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossTurnDataRealtimePO"
>
...
...
@@ -45,7 +46,7 @@
#{entity.status},#{entity.trafficIndex},#{entity.speed},#{entity.inSpeed},#{entity.outSpeed},
#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{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>
</insert>
...
...
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