Browse Source

保存患者住院信息时管床医生不能为空

lighter 2 years ago
parent
commit
84ab9ba852

+ 3 - 0
src/main/java/thyyxxk/webserver/service/inpatient/PatientService.java

@@ -348,6 +348,9 @@ public class PatientService {
         if (StringUtil.isBlank(patient.getDutyNurse())) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "责任护士不能为空!");
         }
+        if (StringUtil.isBlank(patient.getReferPhysician())) {
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "管床医生不能为空!");
+        }
         if (StringUtil.isBlank(patient.getCountry())) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "国籍不能为空!");
         }