Commit 278c9c51 authored by 18310373984@163.com's avatar 18310373984@163.com

更新照片信息

parent 1f3fd75a
......@@ -220,7 +220,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
attachPhotoUpdateVo.setChFndAttachs(srvOrganEmpVo.getPhotoList());
attachPhotoUpdateVo.setCtrlId(srvOrganEmpVo.getEmpId());
attachPhotoUpdateVo.setAttachType(AttachType.SRV_EMP_Photo.getUploadType());
attachFeignService.updateAttachs(attachPhotoUpdateVo);
for(int i=0;i<srvOrganEmpVo.getPhotoList().size();i++) {
ChFndAttach chFndAttach=srvOrganEmpVo.getPhotoList().get(i);
......@@ -235,6 +235,9 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
log.info("删除人脸信息:" + delresult);
Result addResult=faceAuthUtil.addFace(srvOrganEmpVo, chFndAttach.getFilePath(),userId);
log.info("新增人脸信息:" + addResult);
if (StrUtil.equals(addResult.getCode(), ResultCode.SUCCESS.getCode())) {
attachFeignService.updateAttachs(attachPhotoUpdateVo);
}
return addResult;
}else{
......@@ -242,6 +245,9 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
//在新增人员信息
Result addResult=faceAuthUtil.addFace(srvOrganEmpVo, chFndAttach.getFilePath(),userId);
log.info("新增人脸信息:"+addResult);
if (StrUtil.equals(addResult.getCode(), ResultCode.SUCCESS.getCode())) {//更新成功,在绑定照片信息
attachFeignService.updateAttachs(attachPhotoUpdateVo);
}
return addResult;
}
}
......
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