Commit a1e08d62 authored by maqing's avatar maqing

修改校验srvOrganEmpVo.getEmpTypeId()

parent e0d30e6b
...@@ -244,7 +244,12 @@ public class SrvOrganController { ...@@ -244,7 +244,12 @@ public class SrvOrganController {
*/ */
@PostMapping("/srvOrganEmp") @PostMapping("/srvOrganEmp")
public Result saveOrUpdateSrvOrganEmp(SrvOrganEmpVo srvOrganEmpVo) { public Result saveOrUpdateSrvOrganEmp(SrvOrganEmpVo srvOrganEmpVo) {
if (null == srvOrganEmpVo.getOrganId() || null == srvOrganEmpVo.getSrvOrganId() || StrUtil.isBlank(srvOrganEmpVo.getEmpName()) || StrUtil.isBlank(srvOrganEmpVo.getCertifType()) || StrUtil.isBlank(srvOrganEmpVo.getCertifNum()) || StrUtil.isBlank(srvOrganEmpVo.getGender()) || null == srvOrganEmpVo.getAge() || StrUtil.isBlank(srvOrganEmpVo.getMobilePhone()) || null == srvOrganEmpVo.getEmpTypeId() || null == srvOrganEmpVo.getEmpType() || null == srvOrganEmpVo.getEduId()) { if (null == srvOrganEmpVo.getOrganId() || null == srvOrganEmpVo.getSrvOrganId()
|| StrUtil.isBlank(srvOrganEmpVo.getEmpName()) || StrUtil.isBlank(srvOrganEmpVo.getCertifType())
|| StrUtil.isBlank(srvOrganEmpVo.getCertifNum()) || StrUtil.isBlank(srvOrganEmpVo.getGender())
|| null == srvOrganEmpVo.getAge() || StrUtil.isBlank(srvOrganEmpVo.getMobilePhone())
|| null == srvOrganEmpVo.getEmpType()
|| null == srvOrganEmpVo.getEduId()) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo); srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo);
......
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