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
84046cb8
Commit
84046cb8
authored
May 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务追踪
parent
d28dc491
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncRegisterUserTaskImpl.java
...com/mortals/xhx/daemon/task/SyncRegisterUserTaskImpl.java
+6
-5
No files found.
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncRegisterUserTaskImpl.java
View file @
84046cb8
...
@@ -88,17 +88,17 @@ public class SyncRegisterUserTaskImpl implements ITaskExcuteService {
...
@@ -88,17 +88,17 @@ public class SyncRegisterUserTaskImpl implements ITaskExcuteService {
continue
;
continue
;
}
}
PersonEntity
personServiceExtCache
=
personService
.
getExtCache
(
user
.
getIdcardIDCardNo
());
PersonEntity
personServiceExtCache
=
personService
.
getExtCache
(
user
.
getIdcardIDCardNo
());
if
(
ObjectUtils
.
isEmpty
(
personServiceExtCache
))
{
if
(
ObjectUtils
.
isEmpty
(
personServiceExtCache
))
{
log
.
info
(
"用户不存在,idcard:{}"
,
user
.
getIdcardIDCardNo
());
log
.
info
(
"用户不存在,idcard:{}"
,
user
.
getIdcardIDCardNo
());
continue
;
continue
;
}
}
//判断是否有图片地址
//判断是否有图片地址
if
(
ObjectUtils
.
isEmpty
(
personServiceExtCache
.
getSourcePhotoUri
()))
{
if
(
ObjectUtils
.
isEmpty
(
personServiceExtCache
.
getSourcePhotoUri
()))
{
PersonEntity
personEntity
=
new
PersonEntity
();
PersonEntity
personEntity
=
new
PersonEntity
();
personEntity
.
setId
(
personServiceExtCache
.
getCreateUserId
());
personEntity
.
setId
(
personServiceExtCache
.
getCreateUserId
());
personEntity
.
setSourcePhotoUri
(
user
.
getIdcardDataPhotoFileName
());
personEntity
.
setSourcePhotoUri
(
user
.
getIdcardDataPhotoFileName
());
//直接下载更新到本地
//直接下载更新到本地
String
downUrl
=
host
+
"/"
+
personEntity
.
getSourcePhotoUri
();
String
downUrl
=
host
+
"/"
+
personEntity
.
getSourcePhotoUri
();
// String downUrl = "http://192.168.0.98:11078/file/fileupload/1679215657433.jpg";
// String downUrl = "http://192.168.0.98:11078/file/fileupload/1679215657433.jpg";
log
.
info
(
"downUrl:{}"
,
downUrl
);
log
.
info
(
"downUrl:{}"
,
downUrl
);
byte
[]
bytes
=
HttpUtil
.
downloadBytes
(
downUrl
);
byte
[]
bytes
=
HttpUtil
.
downloadBytes
(
downUrl
);
...
@@ -107,8 +107,9 @@ public class SyncRegisterUserTaskImpl implements ITaskExcuteService {
...
@@ -107,8 +107,9 @@ public class SyncRegisterUserTaskImpl implements ITaskExcuteService {
MultipartFile
file
=
getMultipartFile
(
inputStream
,
"photo.jpg"
);
MultipartFile
file
=
getMultipartFile
(
inputStream
,
"photo.jpg"
);
String
filePath
=
uploadService
.
saveFileUpload
(
file
,
"file/fileupload/photo"
,
null
);
String
filePath
=
uploadService
.
saveFileUpload
(
file
,
"file/fileupload/photo"
,
null
);
personEntity
.
setPhoto
(
filePath
);
personEntity
.
setPhoto
(
filePath
);
personEntity
.
setId
(
personServiceExtCache
.
getId
());
personService
.
update
(
personEntity
);
personService
.
update
(
personEntity
);
}
else
{
}
else
{
log
.
info
(
"图片下载失败:{}"
,
downUrl
);
log
.
info
(
"图片下载失败:{}"
,
downUrl
);
}
}
}
}
...
...
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