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
jinan
traffic-signal-platform
Commits
a471a291
Commit
a471a291
authored
Apr 09, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保留2位小数
parent
b5aca06c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
GreenReportRunStateResponseVO.java
...t/wanji/opt/vo2/report/GreenReportRunStateResponseVO.java
+10
-2
GreenReportRunStatedDataVO.java
.../net/wanji/opt/vo2/report/GreenReportRunStatedDataVO.java
+9
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/vo2/report/GreenReportRunStateResponseVO.java
View file @
a471a291
...
...
@@ -2,9 +2,11 @@ package net.wanji.opt.vo2.report;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
net.wanji.common.utils.tool.DateUtil
;
import
net.wanji.opt.config.Double2TwoDecimalPlacesSerializer
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
@@ -34,8 +36,11 @@ public class GreenReportRunStateResponseVO {
private
String
amMaxTravelTime
;
@ApiModelProperty
(
value
=
"本周早高峰最大行程时间同比(上周)情况"
,
example
=
"减少6分钟"
)
private
String
amMaxTravelTimeSameRatioSituation
;
@ApiModelProperty
(
value
=
"平均拥堵指数"
,
example
=
"4.5"
)
private
String
amAvgContestIndex
;
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
amAvgContestIndex
;
@ApiModelProperty
(
value
=
"平均拥堵指数同比(上周)情况"
,
example
=
"减少0.5"
)
private
String
amAvgContestIndexSameRatioSituation
;
...
...
@@ -54,8 +59,11 @@ public class GreenReportRunStateResponseVO {
private
String
pmMaxTravelTime
;
@ApiModelProperty
(
value
=
"本周早高峰最大行程时间同比(上周)情况"
,
example
=
"减少6分钟"
)
private
String
pmMaxTravelTimeSameRatioSituation
;
@ApiModelProperty
(
value
=
"平均拥堵指数"
,
example
=
"4.5"
)
private
String
pmAvgContestIndex
;
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
pmAvgContestIndex
;
@ApiModelProperty
(
value
=
"平均拥堵指数同比(上周)情况"
,
example
=
"减少0.5"
)
private
String
pmAvgContestIndexSameRatioSituation
;
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo2/report/GreenReportRunStatedDataVO.java
View file @
a471a291
package
net
.
wanji
.
opt
.
vo2
.
report
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
net.wanji.opt.config.Double2TwoDecimalPlacesSerializer
;
@Data
...
...
@@ -18,20 +20,27 @@ public class GreenReportRunStatedDataVO {
private
String
lastWeekCongestSpan
;
@ApiModelProperty
(
value
=
"本周拥堵指数"
,
example
=
"3.5"
)
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
thisWeekCongestIndex
;
@ApiModelProperty
(
value
=
"上周拥堵指数"
,
example
=
"3.0"
)
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
lastWeekCongestIndex
;
@ApiModelProperty
(
value
=
"本周平均车速km/h"
,
example
=
"30.5"
)
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
thisWeekAvgSpeed
;
@ApiModelProperty
(
value
=
"上周平均车速km"
,
example
=
"30.2"
)
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
lastWeekAvgSpeed
;
@ApiModelProperty
(
value
=
"本周行程时间(分钟)"
,
example
=
"6.5"
)
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
thisWeekTravelTime
;
@ApiModelProperty
(
value
=
"上周行程时间(分钟)"
,
example
=
"8.5"
)
@JsonSerialize
(
using
=
Double2TwoDecimalPlacesSerializer
.
class
)
private
Double
lastWeekTravelTime
;
@ApiModelProperty
(
value
=
"峰期时段"
,
example
=
"7:35~8:40"
)
...
...
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