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
4556c972
Commit
4556c972
authored
May 29, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 停车事件添加部分数据添加到拓展字段
parent
136a02c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
EventInfo.java
.../src/main/java/com/wanji/indicators/entity/EventInfo.java
+3
-2
LaneParkEventReceiveMap.java
.../citybrainreceive/event/park/LaneParkEventReceiveMap.java
+7
-4
No files found.
wj-realtime-computing/src/main/java/com/wanji/indicators/entity/EventInfo.java
View file @
4556c972
...
...
@@ -96,7 +96,8 @@ public class EventInfo implements Serializable {
@ApiModelProperty
(
value
=
"入库时间"
,
hidden
=
true
)
@JSONField
(
serialize
=
false
)
private
LocalDateTime
ruksj
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"拓展字段"
)
private
String
extend
;
}
wj-realtime-computing/src/main/java/com/wanji/indicators/task/citybrainreceive/event/park/LaneParkEventReceiveMap.java
View file @
4556c972
...
...
@@ -22,10 +22,7 @@ import java.time.Instant;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.time.ZonedDateTime
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.*
;
/**
* @author duanruiming
...
...
@@ -81,6 +78,12 @@ public class LaneParkEventReceiveMap implements MapFunction<String, List<EventIn
}
eventInfo
.
setSource
(
"5"
);
eventInfo
.
setRemark
(
ParkTypeEnum
.
getMsg
(
laneParkEventVO
.
getType
())
+
SpilloverStateEnum
.
getMsg
(
laneParkEventVO
.
getState
()));
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"vehicleType"
,
laneParkEventVO
.
getVehicleType
());
map
.
put
(
"vehicleColor"
,
laneParkEventVO
.
getVehicleColor
());
map
.
put
(
"plateType"
,
laneParkEventVO
.
getPlateType
());
map
.
put
(
"plateNumber"
,
laneParkEventVO
.
getPlateType
());
eventInfo
.
setExtend
(
mapper
.
writeValueAsString
(
map
));
eventInfos
.
add
(
eventInfo
);
}
}
...
...
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