Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
wj-datacenter-platform
Commits
a8d6d647
Commit
a8d6d647
authored
Jan 17, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 事件方向转向数据结构优化
parent
23a1e45d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
EventDataDTO.java
...main/java/net/wanji/datacenter/pojo/dto/EventDataDTO.java
+2
-2
EventDataServiceImpl.java
...va/net/wanji/datacenter/service/EventDataServiceImpl.java
+2
-2
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/pojo/dto/EventDataDTO.java
View file @
a8d6d647
...
...
@@ -17,7 +17,7 @@ public class EventDataDTO {
private
String
eventId
;
private
String
crossId
;
private
String
eventType
;
private
List
<
String
>
direction
;
private
List
<
Integer
>
direction
;
private
Double
eventLongitude
;
private
Double
eventLatitude
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
...
...
@@ -30,7 +30,7 @@ public class EventDataDTO {
/**
* add 20250107
*/
private
List
<
String
>
turn
;
private
List
<
Integer
>
turn
;
private
Double
unbalanceIndex
;
private
Double
spilloverIndex
;
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/EventDataServiceImpl.java
View file @
a8d6d647
...
...
@@ -82,8 +82,8 @@ public class EventDataServiceImpl implements EventDataService {
eventInfoPO
.
setLng
(
eventInfoPO
.
getLng
());
eventInfoPO
.
setCategory
(
eventDataDTO
.
getEventLevel
());
eventInfoPO
.
setPlaceDesc
(
eventDataDTO
.
getEventType
());
List
<
String
>
directions
=
eventDataDTO
.
getDirection
();
List
<
Integer
>
dirs
=
new
ArrayList
<>(
directions
.
size
()
);
List
<
Integer
>
directions
=
eventDataDTO
.
getDirection
();
List
<
Integer
>
dirs
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
directions
))
{
directions
.
forEach
(
item
->
{
dirs
.
add
(
Integer
.
valueOf
(
item
)
+
1
);
...
...
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