Commit 84d35513 authored by 18310373984@163.com's avatar 18310373984@163.com

护理人员页面上传人脸标准照必传字段

parent 3e71c559
...@@ -257,7 +257,8 @@ public class SrvOrganController { ...@@ -257,7 +257,8 @@ public class SrvOrganController {
|| null == srvOrganEmpVo.getAge() || null == srvOrganEmpVo.getAge()
|| StrUtil.isBlank(srvOrganEmpVo.getMobilePhone()) || StrUtil.isBlank(srvOrganEmpVo.getMobilePhone())
|| null == srvOrganEmpVo.getEmpType() || null == srvOrganEmpVo.getEmpType()
|| null == srvOrganEmpVo.getEduId()) { || null == srvOrganEmpVo.getEduId()
|| null == srvOrganEmpVo.getPhotoList()) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
Result result= srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo); Result result= srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo);
......
...@@ -200,7 +200,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -200,7 +200,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
//保存到本地及人脸库 //保存到本地及人脸库
private Result<String> updatePhotoAttachs(SrvOrganEmpVo srvOrganEmpVo, ChSrvOrganEmp chSrvOrganEmp) { private Result<String> updatePhotoAttachs(SrvOrganEmpVo srvOrganEmpVo, ChSrvOrganEmp chSrvOrganEmp) {
if(srvOrganEmpVo.getPhotoList().size()>0) { if(srvOrganEmpVo.getPhotoList()!=null&&srvOrganEmpVo.getPhotoList().size()>0) {//标准照必传
//修改标准照 //修改标准照
AttachUpdateVo attachPhotoUpdateVo = new AttachUpdateVo(); AttachUpdateVo attachPhotoUpdateVo = new AttachUpdateVo();
attachPhotoUpdateVo.setChFndAttachs(srvOrganEmpVo.getPhotoList()); attachPhotoUpdateVo.setChFndAttachs(srvOrganEmpVo.getPhotoList());
......
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