lgy 2 днів тому
батько
коміт
a6ea5f37a5

+ 2 - 3
jcjyhr/app/zskk/controller/Patient.php

@@ -96,15 +96,14 @@ class Patient extends ZskkApiController
     {
         try {
             $params = $this->request->post();
-            $params = $this->getDecryptData($params['data']);
+//            $params = $this->getDecryptData($params['data']);
             $params = $servies->makeMappingData($params,'0','postExamInfo');
             $data = $servies->postExamInfo($params);
-            $data = $this->makeEncryptData($data);
         }catch (\Exception $e)
         {
             $this->error($e->getMessage());
         }
-        $this->success('success',$data);
+        $this->success('success','');
     }
     /**
      * 上传检查数据

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

@@ -907,6 +907,7 @@ class PatientServies
 
             $this->handlePatient($check['PATIENT']);
             $MEDICAL_INFORMATION = $check['MEDICAL_INFORMATION'];
+            var_dump($MEDICAL_INFORMATION);die;
             $information = $this->patientModel->getMedical($MEDICAL_INFORMATION['PATIENT_CODE'],[],'*');
             if(!empty($information))
             {
@@ -929,6 +930,7 @@ class PatientServies
 
     public function postExamReport($params): string
     {
+        $information = $this->patientModel->getMedicalData(['HOS_EMPI'=>$params['HOS_EMPI']],'*');
         $EXAM_REPORTS = $this->makeExamData($params['EXAM_REPORTS']);
         $report = $this->patientModel->getExamReport(['EXAM_REPORT_CODE'=>$EXAM_REPORTS['EXAM_REPORT_CODE']],'*');
         $report->save($EXAM_REPORTS);