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
16b02b9e
Commit
16b02b9e
authored
May 14, 2025
by
duwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化4大指标字段
parent
1443df53
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
16 deletions
+28
-16
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+20
-8
CrossingDirectionQueryVO.java
.../main/java/net/wanji/opt/vo/CrossingDirectionQueryVO.java
+2
-2
CrossingQueryVO.java
...rvice/src/main/java/net/wanji/opt/vo/CrossingQueryVO.java
+2
-2
CrossingTurnQueryVO.java
...e/src/main/java/net/wanji/opt/vo/CrossingTurnQueryVO.java
+2
-2
TableQueryVO.java
...-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
+2
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
16b02b9e
...
...
@@ -1414,7 +1414,9 @@ public class TrendServiceImpl implements TrendService {
Double
speed
=
po
.
getSpeed
();
vo
.
setSpeed
((
double
)
Math
.
round
(
speed
*
100
)/
100.0
);
//Math.round(0.01d * 100) / 100.0
Double
queueLength
=
po
.
getQueueLength
();
vo
.
setQueueLength
((
int
)
Math
.
round
(
queueLength
));
if
(
queueLength
!=
null
){
vo
.
setQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
queueLength
)));
}
Integer
delayTime
=
po
.
getDelayTime
();
vo
.
setDelayTime
(
delayTime
);
...
...
@@ -1481,7 +1483,9 @@ public class TrendServiceImpl implements TrendService {
//路口未清空率
vo
.
setCrossNoClearRate
(
0
);
//平均排队长度
vo
.
setAvgQueueLength
(
0.0
);
if
(
queueLength
!=
null
){
vo
.
setAvgQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
queueLength
)));
}
//绿灯有效利用率
vo
.
setGreenLightEfficiency
(
0.0
);
//行人平均通过时间
...
...
@@ -1553,7 +1557,9 @@ public class TrendServiceImpl implements TrendService {
// Date dateFromTimestamp = new Date(millis);
Double
queueLength
=
po
.
getQueueLength
();
vo
.
setQueueLength
(
Math
.
round
(
queueLength
*
100
)/
100.0
);
if
(
queueLength
!=
null
)
{
vo
.
setQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
queueLength
)));
}
Integer
delayTime
=
po
.
getDelayTime
();
vo
.
setDelayTime
(
delayTime
);
...
...
@@ -1631,7 +1637,7 @@ public class TrendServiceImpl implements TrendService {
// vo.setCrossNoClearRate(0);
//平均排队长度
if
(
po
.
getQueueLength
()
!=
null
)
{
vo
.
setAvgQueueLength
(
po
.
getQueueLength
(
));
vo
.
setAvgQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
po
.
getQueueLength
())
));
}
else
{
// vo.setAvgQueueLength(0.0);
}
...
...
@@ -1692,7 +1698,9 @@ public class TrendServiceImpl implements TrendService {
vo
.
setSpeed
(
Math
.
round
(
speed
*
100
)/
100.0
);
// vo.setVehheadDist(0d);//车头间距
Double
queueLength
=
po
.
getQueueLength
();
vo
.
setQueueLength
(
Math
.
round
(
queueLength
*
100
)/
100.0
);
if
(
queueLength
!=
null
)
{
vo
.
setQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
queueLength
)));
}
Double
stopTimes
=
po
.
getStopTimes
();
if
(
stopTimes
!=
null
)
{
vo
.
setStopTimes
(
Math
.
round
(
stopTimes
*
100
)
/
100.0
);
...
...
@@ -1849,7 +1857,9 @@ public class TrendServiceImpl implements TrendService {
// Double vehheadTime = 0d;
// vo.setVehheadTime(Math.round(vehheadTime *100)/100.0);//车头时距
Double
queueLength
=
po
.
getQueueLength
();
vo
.
setQueueLength
(
Math
.
round
(
queueLength
*
100
)/
100.0
);
if
(
queueLength
!=
null
)
{
vo
.
setQueueLength
(
Integer
.
parseInt
(
queueLength
.
toString
()));
}
Double
stopTimes
=
po
.
getStopTimes
();
//停车次数
if
(
stopTimes
!=
null
)
{
vo
.
setStopTimes
(
Math
.
round
(
stopTimes
*
100
)
/
100.0
);
...
...
@@ -1947,7 +1957,7 @@ public class TrendServiceImpl implements TrendService {
// vo.setCrossNoClearRate(0);
//平均排队长度
if
(
po
.
getQueueLength
()
!=
null
)
{
vo
.
setAvgQueueLength
(
Math
.
round
(
po
.
getQueueLength
()*
100
)/
100.0
);
vo
.
setAvgQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
po
.
getQueueLength
()))
);
}
else
{
// vo.setAvgQueueLength(0.0);
}
...
...
@@ -2002,7 +2012,9 @@ public class TrendServiceImpl implements TrendService {
Double
vehheadTime
=
0
d
;
vo
.
setVehheadTime
(
Math
.
round
(
vehheadTime
*
100
)/
100.0
);
//车头时距
Double
queueLength
=
po
.
getQueueLength
();
vo
.
setQueueLength
(
Math
.
round
(
queueLength
*
100
)/
100.0
);
if
(
queueLength
!=
null
)
{
vo
.
setQueueLength
(
Integer
.
parseInt
(
String
.
valueOf
(
queueLength
)));
}
Double
stopTimes
=
po
.
getStopTimes
();
if
(
stopTimes
!=
null
)
{
vo
.
setStopTimes
(
Math
.
round
(
stopTimes
*
100
)/
100.0
);
//Math.round(0.01d * 100) / 100.0
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossingDirectionQueryVO.java
View file @
16b02b9e
...
...
@@ -72,7 +72,7 @@ public class CrossingDirectionQueryVO {
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
double
queueLength
;
private
int
queueLength
;
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
...
...
@@ -194,7 +194,7 @@ public class CrossingDirectionQueryVO {
@ApiModelProperty
(
value
=
"平均排队长度"
)
@ExcelProperty
(
"平均排队长度"
)
private
double
avgQueueLength
;
private
int
avgQueueLength
;
@ApiModelProperty
(
value
=
"绿灯有效利用率"
)
@ExcelProperty
(
"绿灯有效利用率"
)
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossingQueryVO.java
View file @
16b02b9e
...
...
@@ -72,7 +72,7 @@ public class CrossingQueryVO {
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
double
queueLength
;
private
int
queueLength
;
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
...
...
@@ -198,7 +198,7 @@ public class CrossingQueryVO {
@ApiModelProperty
(
value
=
"平均排队长度"
)
@ExcelProperty
(
"平均排队长度"
)
private
double
avgQueueLength
;
private
int
avgQueueLength
;
@ApiModelProperty
(
value
=
"绿灯有效利用率"
)
@ExcelProperty
(
"绿灯有效利用率"
)
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/CrossingTurnQueryVO.java
View file @
16b02b9e
...
...
@@ -84,7 +84,7 @@ public class CrossingTurnQueryVO {
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
double
queueLength
;
private
int
queueLength
;
@ApiModelProperty
(
value
=
"平均停车次数"
)
@ExcelProperty
(
"平均停车次数"
)
...
...
@@ -206,7 +206,7 @@ public class CrossingTurnQueryVO {
@ApiModelProperty
(
value
=
"平均排队长度"
)
@ExcelProperty
(
"平均排队长度"
)
private
double
avgQueueLength
;
private
int
avgQueueLength
;
@ApiModelProperty
(
value
=
"绿灯有效利用率"
)
@ExcelProperty
(
"绿灯有效利用率"
)
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
View file @
16b02b9e
...
...
@@ -136,7 +136,7 @@ public class TableQueryVO {
@ApiModelProperty
(
value
=
"最大排队"
)
@ExcelProperty
(
"最大排队"
)
private
double
queueLength
;
private
int
queueLength
;
@ApiModelProperty
(
value
=
"平均延误"
)
@ExcelProperty
(
"平均延误"
)
...
...
@@ -266,7 +266,7 @@ public class TableQueryVO {
@ApiModelProperty
(
value
=
"平均排队长度"
)
@ExcelProperty
(
"平均排队长度"
)
private
double
avgQueueLength
;
private
int
avgQueueLength
;
@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