Commit 5c8ea8aa authored by 18310373984@163.com's avatar 18310373984@163.com

上传附件

parent d88bfd4c
...@@ -115,12 +115,12 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -115,12 +115,12 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
BeanUtils.copyProperties(chSrvOrganEmp, srvOrganEmpVo); BeanUtils.copyProperties(chSrvOrganEmp, srvOrganEmpVo);
srvOrganEmpVo.setUnifiedSocialCreditCode(chSrvOrgan.getUnifiedSocialCreditCode()); srvOrganEmpVo.setUnifiedSocialCreditCode(chSrvOrgan.getUnifiedSocialCreditCode());
try { try {
/*Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(empId, AttachType.SRV_ORGAN_EMP.getUploadType()); Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(empId, AttachType.SRV_ORGAN_EMP.getUploadType());
if (ResultCode.SUCCESS.getCode().equals(listResult.getCode())) { if (ResultCode.SUCCESS.getCode().equals(listResult.getCode())) {
srvOrganEmpVo.setFileDataList(listResult.getData()); srvOrganEmpVo.setFileDataList(listResult.getData());
} else { } else {
log.error("请求获取护理人员上传文件出错,出错信息:{}", listResult.getMsg()); log.error("请求获取护理人员上传文件出错,出错信息:{}", listResult.getMsg());
}*/ }
//获取护理人员上传的标准照片 //获取护理人员上传的标准照片
Result<List<ChFndAttach>> photoList = attachFeignService.selectAttachs(empId, AttachType.SRV_EMP_Photo.getUploadType()); Result<List<ChFndAttach>> photoList = attachFeignService.selectAttachs(empId, AttachType.SRV_EMP_Photo.getUploadType());
if (ResultCode.SUCCESS.getCode().equals(photoList.getCode())) { if (ResultCode.SUCCESS.getCode().equals(photoList.getCode())) {
...@@ -210,9 +210,11 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -210,9 +210,11 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
for(int i=0;i<srvOrganEmpVo.getPhotoList().size();i++) { for(int i=0;i<srvOrganEmpVo.getPhotoList().size();i++) {
ChFndAttach chFndAttach=srvOrganEmpVo.getPhotoList().get(i); ChFndAttach chFndAttach=srvOrganEmpVo.getPhotoList().get(i);
log.info("filePath1:"+chFndAttach.getFilePath());
if(StringUtils.isEmpty(chFndAttach.getFilePath())){ if(StringUtils.isEmpty(chFndAttach.getFilePath())){
chFndAttach=attachFeignService.selectAttachById(chFndAttach.getAttachId()).getData(); chFndAttach=attachFeignService.selectAttachById(chFndAttach.getAttachId()).getData();
} }
log.info("filePath2:"+chFndAttach.getFilePath());
if(StringUtils.isNotEmpty(chSrvOrganEmp.getFaceId())) { if(StringUtils.isNotEmpty(chSrvOrganEmp.getFaceId())) {
//先删除人员信息 //先删除人员信息
Result<String> delresult = faceAuthUtil.deleteFace(chSrvOrganEmp); Result<String> delresult = faceAuthUtil.deleteFace(chSrvOrganEmp);
......
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