Commit 1508e622 authored by 18310373984@163.com's avatar 18310373984@163.com

单独保存标准照接口修改

parent e038db5e
...@@ -257,10 +257,14 @@ public class SrvOrganController { ...@@ -257,10 +257,14 @@ 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);
} }
if(null== srvOrganEmpVo.getEmpId()){//新增才需要校验标准照是否为空
if(null == srvOrganEmpVo.getPhotoList()){
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
}
try { try {
Integer userId = TokenParsingUtil.TokenParsing(token, "userId"); Integer userId = TokenParsingUtil.TokenParsing(token, "userId");
return srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo,userId); return srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo,userId);
......
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