Commit e038db5e authored by 18310373984@163.com's avatar 18310373984@163.com

单独保存标准照接口修改

parent 80565e0a
...@@ -270,7 +270,7 @@ public class SrvOrganController { ...@@ -270,7 +270,7 @@ public class SrvOrganController {
} }
@PostMapping("/saveEmpFace") @PostMapping("/saveEmpFace")
public Result saveEmpFace(@RequestHeader("Authorization") String token,SrvOrganEmpVo srvOrganEmpVo) {//参数传faceId,certiNum, public Result saveEmpFace(@RequestHeader("Authorization") String token,SrvOrganEmpFaceVo srvOrganEmpVo) {//参数传faceId,certiNum,
if (null == srvOrganEmpVo.getEmpId() if (null == srvOrganEmpVo.getEmpId()
|| StrUtil.isBlank(srvOrganEmpVo.getCertifNum()) || StrUtil.isBlank(srvOrganEmpVo.getCertifNum())
|| null == srvOrganEmpVo.getPhotoList() || null == srvOrganEmpVo.getPhotoList()
...@@ -279,8 +279,14 @@ public class SrvOrganController { ...@@ -279,8 +279,14 @@ public class SrvOrganController {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
try { try {
SrvOrganEmpVo srvOrganEmpVoR=new SrvOrganEmpVo();
srvOrganEmpVoR.setEmpId(srvOrganEmpVo.getEmpId());
srvOrganEmpVoR.setEmpName(srvOrganEmpVo.getEmpName());
srvOrganEmpVoR.setGender(srvOrganEmpVo.getGender());
srvOrganEmpVoR.setCertifNum(srvOrganEmpVo.getCertifNum());
srvOrganEmpVoR.setPhotoList(srvOrganEmpVo.getPhotoList());
Integer userId = TokenParsingUtil.TokenParsing(token, "userId"); Integer userId = TokenParsingUtil.TokenParsing(token, "userId");
return srvOrganEmpService.saveEmpFace(srvOrganEmpVo,userId); return srvOrganEmpService.saveEmpFace(srvOrganEmpVoR,userId);
} catch (RuntimeException e) { } catch (RuntimeException e) {
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
......
package com.hungraim.ltc.pojo.vo.disable;
import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import lombok.Data;
import java.util.List;
@Data
public class SrvOrganEmpFaceVo{
private Long empId;
/**
* 护理人员姓名
*/
private String empName;
/**
* 证件号码
*/
private String certifNum;
/**
* 性别 男:M;女:F;不确定 N
*/
private String gender;
//标准照片
private List<ChFndAttach> photoList;
//腾讯云人脸库faceId
private String faceId;
}
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