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
df81ebd5
Commit
df81ebd5
authored
Jul 01, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 微观大数据平台-周期时间空间占有率;异常优化
parent
a9a1ddb7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+2
-2
CrossDataHistMapper.xml
wj-databus/src/main/resources/mapper/CrossDataHistMapper.xml
+6
-2
CrossDataRealtimeMapper.xml
...bus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
+6
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
df81ebd5
...
@@ -1315,8 +1315,8 @@ public class TrendServiceImpl implements TrendService {
...
@@ -1315,8 +1315,8 @@ public class TrendServiceImpl implements TrendService {
element
.
setQueueNums
(
dto
.
getQueueNums
());
element
.
setQueueNums
(
dto
.
getQueueNums
());
element
.
setCarNums
(
dto
.
getCarNums
());
element
.
setCarNums
(
dto
.
getCarNums
());
element
.
setVehicleLengthRatio
(
Math
.
round
(
dto
.
getVehicleLengthRatio
()
*
100.0
)
/
100.0
);
element
.
setVehicleLengthRatio
(
Math
.
round
(
dto
.
getVehicleLengthRatio
()
*
100.0
));
element
.
setVehicleNumsRatio
(
Math
.
round
(
dto
.
getVehicleNumsRatio
()
*
100.0
)
/
100.0
);
element
.
setVehicleNumsRatio
(
Math
.
round
(
dto
.
getVehicleNumsRatio
()
*
100.0
));
element
.
setSpeed
(
Math
.
round
(
dto
.
getMeanV
()
*
100.0
)
/
100.0
);
element
.
setSpeed
(
Math
.
round
(
dto
.
getMeanV
()
*
100.0
)
/
100.0
);
element
.
setHeadSpeed
(
Math
.
round
(
dto
.
getStartV
()
*
100.0
)
/
100.0
);
element
.
setHeadSpeed
(
Math
.
round
(
dto
.
getStartV
()
*
100.0
)
/
100.0
);
element
.
setMailSpeed
(
Math
.
round
(
dto
.
getEndV
()
*
100.0
)
/
100.0
);
element
.
setMailSpeed
(
Math
.
round
(
dto
.
getEndV
()
*
100.0
)
/
100.0
);
...
...
wj-databus/src/main/resources/mapper/CrossDataHistMapper.xml
View file @
df81ebd5
...
@@ -43,6 +43,8 @@
...
@@ -43,6 +43,8 @@
<result
column=
"traffic_flow_A"
property=
"trafficFlowA"
></result>
<result
column=
"traffic_flow_A"
property=
"trafficFlowA"
></result>
<result
column=
"traffic_flow_B"
property=
"trafficFlowB"
></result>
<result
column=
"traffic_flow_B"
property=
"trafficFlowB"
></result>
<result
column=
"traffic_flow_C"
property=
"trafficFlowC"
></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>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -50,7 +52,8 @@
...
@@ -50,7 +52,8 @@
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,not_clear_car_nums,green_light_efficiency,effusion_rate,
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>
</sql>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataHistPO"
>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataHistPO"
>
...
@@ -63,7 +66,8 @@
...
@@ -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.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.clearRate},#{entity.loadBalance},#{entity.notClearCarNums},#{entity.greenLightEfficiency},#{entity.effusionRate},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},
#{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>
</foreach>
</insert>
</insert>
...
...
wj-databus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
View file @
df81ebd5
...
@@ -43,6 +43,8 @@
...
@@ -43,6 +43,8 @@
<result
column=
"traffic_flow_A"
property=
"trafficFlowA"
></result>
<result
column=
"traffic_flow_A"
property=
"trafficFlowA"
></result>
<result
column=
"traffic_flow_B"
property=
"trafficFlowB"
></result>
<result
column=
"traffic_flow_B"
property=
"trafficFlowB"
></result>
<result
column=
"traffic_flow_C"
property=
"trafficFlowC"
></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>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -50,7 +52,8 @@
...
@@ -50,7 +52,8 @@
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,
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,
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>
</sql>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataRealtimePO"
>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.po.CrossDataRealtimePO"
>
...
@@ -63,7 +66,8 @@
...
@@ -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.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.clearRate},#{entity.endTime},#{entity.loadBalance},#{entity.notClearCarNums},#{entity.greenLightEfficiency},#{entity.effusionRate},
#{entity.noStopRate},#{entity.oneStopRate},#{entity.twoStopRate},#{entity.threeStopRate},
#{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>
</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