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
35a6f847
Commit
35a6f847
authored
Sep 13, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 增加 平均未清空率车辆数量字段
parent
fbeafa55
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
CrossDataRealtimePO.java
...c/main/java/net/wanji/databus/po/CrossDataRealtimePO.java
+6
-1
CrossDataHistMapper.xml
wj-databus/src/main/resources/mapper/CrossDataHistMapper.xml
+3
-2
CrossDataRealtimeMapper.xml
...bus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
+4
-2
No files found.
wj-databus/src/main/java/net/wanji/databus/po/CrossDataRealtimePO.java
View file @
35a6f847
...
@@ -144,10 +144,15 @@ public class CrossDataRealtimePO {
...
@@ -144,10 +144,15 @@ public class CrossDataRealtimePO {
* 红灯清空率
* 红灯清空率
*/
*/
@ApiModelProperty
(
value
=
"红灯清空率"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"红灯清空率"
,
notes
=
""
)
private
Integer
clearRate
;
private
Double
clearRate
;
/**
/**
* 负载均衡度
* 负载均衡度
*/
*/
@ApiModelProperty
(
value
=
"负载均衡度"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"负载均衡度"
,
notes
=
""
)
private
Double
loadBalance
;
private
Double
loadBalance
;
/**
* 平均未清空车辆数量
*/
@ApiModelProperty
(
value
=
"平均未清空车辆数量"
,
notes
=
""
)
private
Double
notClearCarNums
;
}
}
wj-databus/src/main/resources/mapper/CrossDataHistMapper.xml
View file @
35a6f847
...
@@ -30,13 +30,14 @@
...
@@ -30,13 +30,14 @@
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"clear_rate"
property=
"clearRate"
></result>
<result
column=
"clear_rate"
property=
"clearRate"
></result>
<result
column=
"load_balance"
property=
"loadBalance"
></result>
<result
column=
"load_balance"
property=
"loadBalance"
></result>
<result
column=
"not_clear_car_nums"
property=
"notClearCarNums"
></result>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
cross_id, status, type, traffic_index, start_time, duration, is_unbalance, is_spillover, is_congestion,
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,
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,
flow, flow_rate, speed, queue_length, stop_times, delay_time, sturation, batch_time, gmt_create, gmt_modified,
clear_rate,load_balance
clear_rate,load_balance
,not_clear_car_nums
</sql>
</sql>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataHistPO"
>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataHistPO"
>
...
@@ -47,7 +48,7 @@
...
@@ -47,7 +48,7 @@
(#{entity.crossId},#{entity.status},#{entity.type},#{entity.trafficIndex},#{entity.startTime},#{entity.duration},#{entity.isUnbalance},#{entity.isSpillover},#{entity.isCongestion},
(#{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.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.flow},#{entity.flowRate},#{entity.speed},#{entity.queueLength},#{entity.stopTimes},#{entity.delayTime},#{entity.sturation},#{entity.batchTime},#{entity.gmtCreate},#{entity.gmtModified},
#{entity.clearRate},#{entity.loadBalance})
#{entity.clearRate},#{entity.loadBalance}
,#{entity.notClearCarNums}
)
</foreach>
</foreach>
</insert>
</insert>
...
...
wj-databus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
View file @
35a6f847
...
@@ -31,12 +31,14 @@
...
@@ -31,12 +31,14 @@
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"gmt_modified"
property=
"gmtModified"
></result>
<result
column=
"clear_rate"
property=
"clearRate"
></result>
<result
column=
"clear_rate"
property=
"clearRate"
></result>
<result
column=
"load_balance"
property=
"loadBalance"
></result>
<result
column=
"load_balance"
property=
"loadBalance"
></result>
<result
column=
"not_clear_car_nums"
property=
"notClearCarNums"
></result>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
cross_id,status,type,traffic_index,start_time,duration,is_unbalance,is_spillover,is_congestion,unbalance_index,
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,
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
queue_length,stop_times,delay_time,sturation,batch_time,gmt_create,gmt_modified,clear_rate,end_time,
load_balance,not_clear_car_nums
</sql>
</sql>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataRealtimePO"
>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataRealtimePO"
>
...
@@ -47,7 +49,7 @@
...
@@ -47,7 +49,7 @@
(#{entity.crossId},#{entity.status},#{entity.type},#{entity.trafficIndex},#{entity.startTime},#{entity.duration},#{entity.isSpillover},#{entity.isSpillover},#{entity.isCongestion},
(#{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.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.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.clearRate},#{entity.endTime},#{entity.loadBalance}
,#{entity.notClearCarNums}
)
</foreach>
</foreach>
</insert>
</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