Commit 84351996 by jianan

电子报聘合同生成校验2

parent 928f63b8
...@@ -726,11 +726,11 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService ...@@ -726,11 +726,11 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
String practitionerCode = practitioner == null ? null : practitioner.getPractitionerCode(); String practitionerCode = practitioner == null ? null : practitioner.getPractitionerCode();
String practitionerRegNo = practitioner == null ? null : practitioner.getPractitionerRegNo(); String practitionerRegNo = practitioner == null ? null : practitioner.getPractitionerRegNo();
if (StringUtils.isEmpty(practitionerRegNo)) { if (StringUtils.isBlank(practitionerRegNo)) {
resp.setCommonResult(new CommonResult(false, "执业编号不能为空,请保存后再生成合同")); resp.setCommonResult(new CommonResult(false, "执业编号不能为空,请保存后再生成合同"));
return resp; return resp;
} }
if (StringUtils.isEmpty(practitionerCode)) { if (StringUtils.isBlank(practitionerCode)) {
resp.setCommonResult(new CommonResult(false, "内部编号不能为空,请保存后再生成合同")); resp.setCommonResult(new CommonResult(false, "内部编号不能为空,请保存后再生成合同"));
return resp; return resp;
} }
......
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