Commit 03071e94 authored by 18310373984@163.com's avatar 18310373984@163.com

增加人脸返回接口

parent 6aef31a6
......@@ -201,7 +201,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
public Result saveEmpFace(SrvOrganEmpVo srvOrganEmpVo,Integer userId) {//修改护理人员需要将修改基本信息和标准照片保存分开
//上传标准照保存到人脸库
Result<String > faceReult=updatePhotoAttachs(srvOrganEmpVo,userId);
if (!StrUtil.equals(faceReult.getCode(), "0000")) {//是否成功
if (!StrUtil.equals(faceReult.getCode(), ResultCode.SUCCESS.getCode())) {//是否成功
throw new RuntimeException(faceReult.getMsg());//人脸库上传失败,页面显示错误信息
}else{
String faceId = faceReult.getData();//上传标准照
......@@ -238,6 +238,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
log.info("调用新增人脸接口返回信息:" + addResult);
if (StrUtil.equals(addResult.getCode(),"0000")) {//返回成功
attachFeignService.updateAttachs(attachPhotoUpdateVo);
addResult.setCode(ResultCode.SUCCESS.getCode());
}
return addResult;
/*if(StringUtils.isNotEmpty(srvOrganEmpVo.getFaceId())) {
......
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