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
728f850f
Commit
728f850f
authored
Jun 20, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 微观大数据平台-Excel导出优化
parent
bdf0aae0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
44 deletions
+83
-44
BaseCrossInfoCache.java
...src/main/java/net/wanji/opt/cache/BaseCrossInfoCache.java
+9
-0
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+46
-25
TableQueryVO.java
...-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
+24
-15
TurnDataIndexExcelVO.java
.../src/main/java/net/wanji/opt/vo/TurnDataIndexExcelVO.java
+3
-3
CrossLaneDataHistMapper.xml
...bus/src/main/resources/mapper/CrossLaneDataHistMapper.xml
+1
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/cache/BaseCrossInfoCache.java
View file @
728f850f
...
...
@@ -58,6 +58,15 @@ public class BaseCrossInfoCache implements CommandLineRunner {
return
isSignalCrossIdList
;
}
public
String
getCrossName
(
String
crossId
)
{
for
(
BaseCrossInfoPO
baseCrossInfoPO
:
crossInfoList
)
{
if
(
StringUtils
.
equals
(
crossId
,
baseCrossInfoPO
.
getId
()))
{
return
baseCrossInfoPO
.
getName
();
}
}
return
""
;
}
@Override
public
void
run
(
String
...
args
)
throws
Exception
{
init
();
...
...
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
728f850f
This diff is collapsed.
Click to expand it.
signal-optimize-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
View file @
728f850f
package
net
.
wanji
.
opt
.
vo
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -34,14 +35,17 @@ public class TableQueryVO {
private
Date
time
;
@ApiModelProperty
(
value
=
"方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
)
@Excel
Property
(
"方向"
)
@Excel
Ignore
private
Integer
dir
;
@ExcelProperty
(
"方向"
)
private
String
dirName
;
@ApiModelProperty
(
value
=
"车道,从左车道开始编号11、12、13..."
)
@ExcelProperty
(
"车道号"
)
private
String
laneSort
;
@ApiModelProperty
(
value
=
"车道编号"
)
@ExcelIgnore
private
String
laneId
;
@ApiModelProperty
(
value
=
"排队长度"
)
...
...
@@ -65,6 +69,7 @@ public class TableQueryVO {
private
int
carNums
;
@ApiModelProperty
(
value
=
"空间密度车辆负荷比"
)
@ExcelIgnore
private
double
vehicleNumsRatio
;
@ApiModelProperty
(
value
=
"空间密度(长度占比)"
)
...
...
@@ -79,8 +84,8 @@ public class TableQueryVO {
@ExcelProperty
(
"头车速度"
)
private
double
headSpeed
;
@ApiModelProperty
(
value
=
"
尾
车速度"
)
@ExcelProperty
(
"
尾
车速度"
)
@ApiModelProperty
(
value
=
"
末
车速度"
)
@ExcelProperty
(
"
末
车速度"
)
private
double
mailSpeed
;
@ApiModelProperty
(
value
=
"队首距离(米)"
)
...
...
@@ -105,10 +110,14 @@ public class TableQueryVO {
private
Date
time
;
@ApiModelProperty
(
value
=
"方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
)
@Excel
Property
(
"方向"
)
@Excel
Ignore
private
Integer
dir
;
@ExcelProperty
(
"方向"
)
private
String
dirName
;
@ApiModelProperty
(
value
=
"车道转向:1左转;2直行;3右转;4掉头;5直左;6直右;7左直右;8左右;9左转掉头;10直行掉头;11右转掉头;12左直掉头;13直右掉头;14左直右掉头;15左右掉头',\n"
)
@ExcelIgnore
private
Integer
turn
;
@ApiModelProperty
(
value
=
"车道,从左车道开始编号11、12、13..."
)
...
...
@@ -116,13 +125,9 @@ public class TableQueryVO {
private
String
laneSort
;
@ApiModelProperty
(
value
=
"流量"
)
@Excel
Property
(
"流量"
)
@Excel
Ignore
private
Integer
flow
;
@ApiModelProperty
(
value
=
"速度"
)
@ExcelProperty
(
"速度"
)
private
Integer
speed
;
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
Integer
queueLength
;
...
...
@@ -144,31 +149,35 @@ public class TableQueryVO {
private
Double
vehheadDist
;
@ApiModelProperty
(
value
=
"时间占有率"
)
@ExcelProperty
(
"平均时间占有率"
)
private
Integer
timeOccupancy
;
@ApiModelProperty
(
value
=
"空间占有率"
)
// 空间占有率即车辆负荷比
@ExcelProperty
(
"空间占有率"
)
@ExcelProperty
(
"
平均
空间占有率"
)
private
Integer
vehicleNumsRatioMean
;
@ExcelProperty
(
"85位速度"
)
private
double
v85
;
@ApiModelProperty
(
value
=
"速度"
)
@ExcelProperty
(
"平均速度"
)
private
Integer
speed
;
@ExcelProperty
(
"大车流量"
)
private
Integer
trafficFlowA
;
@ExcelProperty
(
"中车流量"
)
private
Integer
trafficFlowB
;
@ExcelProperty
(
"小车流量"
)
private
Integer
trafficFlowC
;
@ExcelProperty
(
"85速度"
)
private
double
v85
;
@ApiModelProperty
(
value
=
"非机动车流量"
)
@ExcelProperty
(
"非机动车流量"
)
private
int
nonMotorFlow
;
@ApiModelProperty
(
value
=
"行人流量"
)
@ExcelProperty
(
"行人流量"
)
private
int
pedFlow
;
@ApiModelProperty
(
value
=
"总流量"
)
@ExcelProperty
(
"总流量"
)
private
int
allFlow
;
@ApiModelProperty
(
value
=
"车辆总和"
)
@ExcelProperty
(
"车辆总和"
)
private
int
allVehiceleFlow
;
@ApiModelProperty
(
value
=
"总流量"
)
@ExcelProperty
(
"总流量"
)
private
int
allFlow
;
}
}
signal-optimize-service/src/main/java/net/wanji/opt/vo/TurnDataIndexExcelVO.java
View file @
728f850f
...
...
@@ -51,12 +51,12 @@ public class TurnDataIndexExcelVO {
@ExcelProperty
(
"直行平均速度"
)
private
BigDecimal
straightSpeed
;
@ApiModelProperty
(
value
=
"右转
平均
流量"
)
@ExcelProperty
(
"右转
平均
流量"
)
@ApiModelProperty
(
value
=
"右转流量"
)
@ExcelProperty
(
"右转流量"
)
private
Integer
rightFlow
;
@ApiModelProperty
(
value
=
"右转速度"
)
@ExcelProperty
(
"右转速度"
)
@ExcelProperty
(
"右转
平均
速度"
)
private
BigDecimal
rightSpeed
;
}
wj-databus/src/main/resources/mapper/CrossLaneDataHistMapper.xml
View file @
728f850f
...
...
@@ -104,7 +104,7 @@
<select
id=
"selectByCrossIdAndTimeSpan"
resultType=
"net.wanji.databus.po.CrossLaneDataHistPOExt"
>
SELECT t1.id, t2.dir,t2.turn, t2.sort, t1.flow, t1.speed, t1.queue_length, t1.delay_time, t1.stop_times,
t1.vehhead_time, t1.batch_time, t1.time_occupancy, t1.vehicle_nums_ratio_mean, t1.start_time,
t1.vehhead_time,
t1.vehhead_dist,
t1.batch_time, t1.time_occupancy, t1.vehicle_nums_ratio_mean, t1.start_time,
t1.traffic_flow_A, t1.traffic_flow_B, t1.traffic_flow_C,t1.v_85, t1.non_motor_flow, t1.time_occupancy
FROM t_lane_data_hist t1 JOIN t_base_lane_info t2 ON t1.id = t2.id
where t1.cross_id = #{crossId}
...
...
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