lgy 1 day ago
parent
commit
adbc621254
1 changed files with 2 additions and 3 deletions
  1. 2 3
      jcjyhr/app/zskk/servies/PatientServies.php

+ 2 - 3
jcjyhr/app/zskk/servies/PatientServies.php

@@ -908,14 +908,13 @@ class PatientServies
             $this->handlePatient($check['PATIENT']);
             $MEDICAL_INFORMATION = $check['MEDICAL_INFORMATION'];
             $information = $this->patientModel->getMedical($MEDICAL_INFORMATION['PATIENT_CODE'],[],'*');
-            return 'success';
             if(!empty($information))
             {
                 $this->patientModel->saveRepeatInformation($information);
                 $this->patientModel->delOldInformation(['PATIENT_CODE'=>$information['PATIENT_CODE']]);
             }
             $MEDICAL_INFORMATION_INSERT = $MEDICAL_INFORMATION;
-//            $MEDICAL_INFORMATION_INSERT['create_time'] =  $check['EXAM_REPORTS'][0]['create_time'];
+            $MEDICAL_INFORMATION_INSERT['create_time'] =  $check['EXAM_REPORTS'][0]['create_time'];
             $this->patientModel->saveMedical($MEDICAL_INFORMATION_INSERT);
             $EXAM_REPORTS = $check['EXAM_REPORTS'];
             $this->saveExamData($EXAM_REPORTS);
@@ -1203,7 +1202,7 @@ class PatientServies
                 $this->patientModel->delOldInformation(['PATIENT_CODE'=>$information['PATIENT_CODE']]);
             }
             $MEDICAL_INFORMATION_INSERT = $MEDICAL_INFORMATION;
-            $MEDICAL_INFORMATION_INSERT['create_time'] =  $check['INSPECT_REPORTS'][0]['create_time'];
+//            $MEDICAL_INFORMATION_INSERT['create_time'] =  $check['INSPECT_REPORTS'][0]['create_time'];
             $this->patientModel->saveMedical($MEDICAL_INFORMATION_INSERT);
 
             $INSPECT_REPORTS = $check['INSPECT_REPORTS'];