Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
fanxing3
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25e3069b
authored
Nov 17, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改 Behavior 中 eventData 存储的数据
1 parent
2b39aaf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
fanxing-forward/src/main/java/com/viontech/fanxing/forward/batch/processor/BehaviorProcessor.java
fanxing-forward/src/main/java/com/viontech/fanxing/forward/batch/processor/BehaviorProcessor.java
View file @
25e3069
package
com
.
viontech
.
fanxing
.
forward
.
batch
.
processor
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.viontech.fanxing.commons.model.Behavior
;
import
com.viontech.fanxing.forward.util.CacheUtils
;
...
...
@@ -47,7 +46,6 @@ public class BehaviorProcessor implements ItemStream, ItemProcessor<JSONObject,
String
taskName
=
item
.
getString
(
"task_name"
);
Date
eventTime
=
DateUtil
.
parse
(
DateUtil
.
FORMAT_FULL
,
eventDt
);
JSONArray
video
=
item
.
getJSONArray
(
"video"
);
String
picArray
=
item
.
getString
(
"pic_path_array"
);
behavior
.
setTaskId
(
taskId
);
...
...
@@ -60,9 +58,7 @@ public class BehaviorProcessor implements ItemStream, ItemProcessor<JSONObject,
behavior
.
setPics
(
picArray
);
String
videoName
=
item
.
getString
(
"video_name"
);
behavior
.
setVideo
(
videoName
);
behavior
.
setEventData
(
eventData
==
null
?
null
:
eventData
.
toJSONString
());
behavior
.
setVideo
(
video
==
null
?
null
:
video
.
toJSONString
());
behavior
.
setEventData
(
item
.
toJSONString
());
return
behavior
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment