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
f0fbb621
Commit
f0fbb621
authored
Apr 21, 2025
by
duwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
79d9b027
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
77 deletions
+108
-77
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+72
-53
CrossingDirectionQueryVO.java
.../main/java/net/wanji/opt/vo/CrossingDirectionQueryVO.java
+6
-6
CrossingQueryVO.java
...rvice/src/main/java/net/wanji/opt/vo/CrossingQueryVO.java
+18
-6
CrossingTurnQueryVO.java
...e/src/main/java/net/wanji/opt/vo/CrossingTurnQueryVO.java
+5
-5
TableQueryVO.java
...-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
+7
-7
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
f0fbb621
This diff is collapsed.
Click to expand it.
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossingDirectionQueryVO.java
View file @
f0fbb621
...
...
@@ -47,7 +47,7 @@ public class CrossingDirectionQueryVO {
@ApiModelProperty
(
value
=
"非机动车流量"
)
@ExcelProperty
(
"非机动车流量"
)
private
int
nonMotorFlow
;
private
double
nonMotorFlow
;
@ExcelProperty
(
"小车流量"
)
private
Integer
trafficFlowC
;
...
...
@@ -60,7 +60,7 @@ public class CrossingDirectionQueryVO {
@ApiModelProperty
(
value
=
"平均速度"
)
@ExcelProperty
(
"平均速度"
)
private
Integer
speed
;
private
double
speed
;
@ApiModelProperty
(
value
=
"平均车头间距"
)
@ExcelProperty
(
"平均车头间距"
)
...
...
@@ -68,15 +68,15 @@ public class CrossingDirectionQueryVO {
@ApiModelProperty
(
value
=
"平均车头时距"
)
@ExcelProperty
(
"平均车头时距"
)
private
Integer
vehheadTime
;
private
double
vehheadTime
;
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
Integer
queueLength
;
private
double
queueLength
;
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
private
Integer
stopTimes
;
private
double
stopTimes
;
//-----------------------------
...
...
@@ -122,7 +122,7 @@ public class CrossingDirectionQueryVO {
@ApiModelProperty
(
value
=
"时间占有率"
)
@ExcelProperty
(
"平均时间占有率%"
)
private
Integer
timeOccupancy
;
private
double
timeOccupancy
;
@ApiModelProperty
(
value
=
"空间占有率"
)
// 空间长度占比 todo字段名称展示先不改了
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossingQueryVO.java
View file @
f0fbb621
...
...
@@ -60,7 +60,7 @@ public class CrossingQueryVO {
@ApiModelProperty
(
value
=
"平均速度"
)
@ExcelProperty
(
"平均速度"
)
private
Integer
speed
;
private
double
speed
;
@ApiModelProperty
(
value
=
"平均车头间距"
)
@ExcelProperty
(
"平均车头间距"
)
...
...
@@ -68,15 +68,15 @@ public class CrossingQueryVO {
@ApiModelProperty
(
value
=
"平均车头时距"
)
@ExcelProperty
(
"平均车头时距"
)
private
Integer
vehheadTime
;
private
double
vehheadTime
;
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
Integer
queueLength
;
private
double
queueLength
;
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
private
Integer
stopTimes
;
private
double
stopTimes
;
//-----------------------------
...
...
@@ -122,12 +122,12 @@ public class CrossingQueryVO {
@ApiModelProperty
(
value
=
"时间占有率"
)
@ExcelProperty
(
"平均时间占有率%"
)
private
Integer
timeOccupancy
;
private
double
timeOccupancy
;
@ApiModelProperty
(
value
=
"空间占有率"
)
// 空间长度占比 todo字段名称展示先不改了
@ExcelProperty
(
"平均空间占有率%"
)
private
Integer
vehicleNumsRatioMean
;
private
double
vehicleNumsRatioMean
;
@ExcelProperty
(
"85位速度"
)
private
double
v85
;
...
...
@@ -187,6 +187,10 @@ public class CrossingQueryVO {
@ExcelProperty
(
"二次停车通过率"
)
private
double
twoStopPassRate
;
@ApiModelProperty
(
name
=
"三次停车通过率"
)
@ExcelProperty
(
"三次停车通过率"
)
public
double
threeStopRate
;
@ApiModelProperty
(
value
=
"路口未清空率"
)
@ExcelProperty
(
"路口未清空率"
)
private
double
crossNoClearRate
;
...
...
@@ -211,4 +215,12 @@ public class CrossingQueryVO {
@ExcelProperty
(
"车辆总和"
)
private
int
allVehiceleFlow
;
}
public
static
void
main
(
String
[]
args
)
{
//保留两位小数
double
b
=
Math
.
round
(
0.01d
*
100
)
/
100.0
;
System
.
out
.
println
(
b
);
double
a
=
(
double
)
Math
.
round
(
0.01d
);
System
.
out
.
println
(
a
);
}
}
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossingTurnQueryVO.java
View file @
f0fbb621
...
...
@@ -72,7 +72,7 @@ public class CrossingTurnQueryVO {
@ApiModelProperty
(
value
=
"平均速度"
)
@ExcelProperty
(
"平均速度"
)
private
Integer
speed
;
private
double
speed
;
@ApiModelProperty
(
value
=
"平均车头间距"
)
@ExcelProperty
(
"平均车头间距"
)
...
...
@@ -80,15 +80,15 @@ public class CrossingTurnQueryVO {
@ApiModelProperty
(
value
=
"平均车头时距"
)
@ExcelProperty
(
"平均车头时距"
)
private
Integer
vehheadTime
;
private
double
vehheadTime
;
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
Integer
queueLength
;
private
double
queueLength
;
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
private
Integer
stopTimes
;
private
double
stopTimes
;
//-----------------------------
...
...
@@ -134,7 +134,7 @@ public class CrossingTurnQueryVO {
@ApiModelProperty
(
value
=
"时间占有率"
)
@ExcelProperty
(
"平均时间占有率%"
)
private
Integer
timeOccupancy
;
private
double
timeOccupancy
;
@ApiModelProperty
(
value
=
"空间占有率"
)
// 空间长度占比 todo字段名称展示先不改了
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
View file @
f0fbb621
...
...
@@ -135,7 +135,7 @@ public class TableQueryVO {
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
Integer
queueLength
;
private
double
queueLength
;
@ApiModelProperty
(
value
=
"平均延误"
)
@ExcelProperty
(
"平均延误"
)
...
...
@@ -151,11 +151,11 @@ public class TableQueryVO {
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
private
Integer
stopTimes
;
private
double
stopTimes
;
@ApiModelProperty
(
value
=
"平均车头时距"
)
@ExcelProperty
(
"平均车头时距"
)
private
Integer
vehheadTime
;
private
double
vehheadTime
;
@ApiModelProperty
(
value
=
"饱和度"
)
@ExcelProperty
(
"饱和度"
)
...
...
@@ -179,17 +179,17 @@ public class TableQueryVO {
@ApiModelProperty
(
value
=
"时间占有率"
)
@ExcelProperty
(
"平均时间占有率%"
)
private
Integer
timeOccupancy
;
private
double
timeOccupancy
;
@ApiModelProperty
(
value
=
"空间占有率"
)
// 空间长度占比 todo字段名称展示先不改了
@ExcelProperty
(
"平均空间占有率%"
)
private
Integer
vehicleNumsRatioMean
;
private
double
vehicleNumsRatioMean
;
@ExcelProperty
(
"85位速度"
)
private
double
v85
;
@ApiModelProperty
(
value
=
"速度"
)
@ExcelProperty
(
"平均速度"
)
private
Integer
speed
;
private
double
speed
;
@ExcelProperty
(
"大车流量"
)
private
Integer
trafficFlowA
;
@ExcelProperty
(
"中车流量"
)
...
...
@@ -213,7 +213,7 @@ public class TableQueryVO {
@ApiModelProperty
(
value
=
"溢出次数"
)
@ExcelProperty
(
"溢出次数"
)
private
int
overflowTimes
;
private
double
overflowTimes
;
@ApiModelProperty
(
value
=
"失衡次数"
)
@ExcelProperty
(
"失衡次数"
)
...
...
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