Commit 84046cb8 authored by 赵啸非's avatar 赵啸非

添加服务追踪

parent d28dc491
......@@ -88,17 +88,17 @@ public class SyncRegisterUserTaskImpl implements ITaskExcuteService {
continue;
}
PersonEntity personServiceExtCache = personService.getExtCache(user.getIdcardIDCardNo());
if(ObjectUtils.isEmpty(personServiceExtCache)){
log.info("用户不存在,idcard:{}",user.getIdcardIDCardNo());
if (ObjectUtils.isEmpty(personServiceExtCache)) {
log.info("用户不存在,idcard:{}", user.getIdcardIDCardNo());
continue;
}
//判断是否有图片地址
if(ObjectUtils.isEmpty(personServiceExtCache.getSourcePhotoUri())){
if (ObjectUtils.isEmpty(personServiceExtCache.getSourcePhotoUri())) {
PersonEntity personEntity = new PersonEntity();
personEntity.setId(personServiceExtCache.getCreateUserId());
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";
log.info("downUrl:{}", downUrl);
byte[] bytes = HttpUtil.downloadBytes(downUrl);
......@@ -107,8 +107,9 @@ public class SyncRegisterUserTaskImpl implements ITaskExcuteService {
MultipartFile file = getMultipartFile(inputStream, "photo.jpg");
String filePath = uploadService.saveFileUpload(file, "file/fileupload/photo", null);
personEntity.setPhoto(filePath);
personEntity.setId(personServiceExtCache.getId());
personService.update(personEntity);
}else {
} else {
log.info("图片下载失败:{}", downUrl);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment