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
be1cfdc0
Commit
be1cfdc0
authored
Jun 19, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 微观大数据平台-日期字段优化
parent
077be371
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+1
-1
HotspotCrossVO.java
...ervice/src/main/java/net/wanji/opt/vo/HotspotCrossVO.java
+2
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
be1cfdc0
...
...
@@ -1715,7 +1715,7 @@ public class TrendServiceImpl implements TrendService {
}
hotspotCrossVO
.
setDetailList
(
dirDetails
);
Date
currentDate
=
new
Date
(
entry
.
getKey
()
*
1000L
);
hotspotCrossVO
.
setTimeStamp
(
org
.
apache
.
commons
.
lang3
.
time
.
DateUtils
.
addHours
(
currentDate
,
8
)
);
hotspotCrossVO
.
setTimeStamp
(
currentDate
);
// 相差八小时
hotspotCrossVO
.
setHourMinute
(
DateUtils
.
format
(
currentDate
,
"HH:mm"
));
hotspotCrossVO
.
setCrossId
(
abnormalCrossListVO
.
getId
());
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/HotspotCrossVO.java
View file @
be1cfdc0
package
net
.
wanji
.
opt
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
...
...
@@ -16,6 +17,7 @@ import java.util.List;
@ApiModel
(
value
=
"重点路口监测实体"
,
description
=
"重点路口监测实体"
)
public
class
HotspotCrossVO
{
private
String
crossId
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
timeStamp
;
private
String
hourMinute
;
private
List
<
DirDetail
>
detailList
;
...
...
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