lgy 2 天之前
父節點
當前提交
2a554cb9df
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      jcjyhr/app/zskk/servies/PatientServies.php

+ 5 - 1
jcjyhr/app/zskk/servies/PatientServies.php

@@ -930,8 +930,12 @@ class PatientServies
     public function postExamReport($params): string
     {
         $information = $this->patientModel->getMedicalData(['HOS_EMPI'=>$params['HOS_EMPI']],'*');
+        if(empty($information))
+        {
+            return '';
+        }
         $EXAM_REPORTS = $this->makeExamData($params['EXAM_REPORTS']);
-        $report = $this->patientModel->getExamReport(['EXAM_REPORT_CODE'=>$EXAM_REPORTS['EXAM_REPORT_CODE']],'*');
+        $report = $this->patientModel->getExamReport(['PATIENT_CODE'=>$information['PATIENT_CODE']],'*');
         $report->save($EXAM_REPORTS);
         return 'success';
     }