Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
4ed697f4
Commit
4ed697f4
authored
May 05, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务追踪
parent
7ff7b1f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
refined-manager/src/main/java/com/mortals/xhx/daemon/task/RealTimePeopleStatTaskImpl.java
...m/mortals/xhx/daemon/task/RealTimePeopleStatTaskImpl.java
+4
-2
No files found.
refined-manager/src/main/java/com/mortals/xhx/daemon/task/RealTimePeopleStatTaskImpl.java
View file @
4ed697f4
...
...
@@ -114,8 +114,9 @@ public class RealTimePeopleStatTaskImpl implements ITaskExcuteService {
RealtimeDataflowQuery
realtimeDataflowQuery
=
new
RealtimeDataflowQuery
();
realtimeDataflowQuery
.
setDetectTimeStart
(
DateUtil
.
yesterday
().
toStringDefaultTimeZone
());
//realtimeDataflowQuery.setPicture("");
List
<
RealtimeDataflowEntity
>
updateList
=
realtimeDataflowService
.
find
(
realtimeDataflowQuery
).
stream
().
filter
(
f
->
ObjectUtils
.
isEmpty
(
f
.
getPicture
())
&&
!
ObjectUtils
.
isEmpty
(
f
.
getPicUri
())).
map
(
item
->
{
List
<
RealtimeDataflowEntity
>
updateList
=
realtimeDataflowService
.
find
(
realtimeDataflowQuery
).
stream
()
.
filter
(
f
->
ObjectUtils
.
isEmpty
(
f
.
getPicture
())
&&
!
ObjectUtils
.
isEmpty
(
f
.
getPicUri
()))
.
map
(
item
->
{
ImgReq
imgReq
=
new
ImgReq
();
imgReq
.
setUrl
(
item
.
getPicUri
());
Rest
<
String
>
rest
=
faceService
.
downloadPicture
(
imgReq
);
...
...
@@ -134,6 +135,7 @@ public class RealTimePeopleStatTaskImpl implements ITaskExcuteService {
}
return
null
;
}).
filter
(
f
->
f
!=
null
).
collect
(
toList
());
log
.
info
(
"更新列表:{}"
,
updateList
.
size
());
if
(!
ObjectUtils
.
isEmpty
(
updateList
))
{
realtimeDataflowService
.
update
(
updateList
,
null
);
}
...
...
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