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

附件

parent 5c8ea8aa
...@@ -38,6 +38,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -38,6 +38,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.io.File;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -123,6 +124,14 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -123,6 +124,14 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
} }
//获取护理人员上传的标准照片 //获取护理人员上传的标准照片
Result<List<ChFndAttach>> photoList = attachFeignService.selectAttachs(empId, AttachType.SRV_EMP_Photo.getUploadType()); Result<List<ChFndAttach>> photoList = attachFeignService.selectAttachs(empId, AttachType.SRV_EMP_Photo.getUploadType());
for(int i=0;i<photoList.getData().size();i++){
ChFndAttach ch=photoList.getData().get(i);
File file=new File(ch.getFilePath());
ch.setFilePath(file.getAbsolutePath());
log.info("getAbsolutePath--:"+file.getAbsolutePath());
log.info("getCanonicalPath--:"+file.getCanonicalPath());
}
if (ResultCode.SUCCESS.getCode().equals(photoList.getCode())) { if (ResultCode.SUCCESS.getCode().equals(photoList.getCode())) {
srvOrganEmpVo.setPhotoList(photoList.getData()); srvOrganEmpVo.setPhotoList(photoList.getData());
} }
......
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