Browse Source

空值判断

lighter 1 month ago
parent
commit
83dd81968e

+ 3 - 0
src/main/java/thyyxxk/webserver/api/medicallaboratory/MedicalLaboratoryController.java

@@ -120,6 +120,9 @@ public class MedicalLaboratoryController {
         String cardNo;
         if (null != body.getPatType() && body.getPatType() == PatientType.INPATIENT) {
             cardNo = dao.getPatientIdByInpatientNo(body.getPatNo());
+            if (StringUtil.isBlank(cardNo)) {
+                return;
+            }
         } else {
             cardNo = body.getPatNo();
         }