刘桂岩 3 년 전
부모
커밋
79cf1ee228
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/controller/Index.php

+ 2 - 0
app/controller/Index.php

@@ -129,6 +129,8 @@ class Index extends BaseController
         $path = $_SERVER['DOCUMENT_ROOT'].$file_path.$rename.".".$ext;
         $ins = ['type'=>$ext,'url'=>$path,'barcode'=>$barCode];
         Db::table('annex')->insert($ins);
+        $patientId = Db::table('dianapiinfo')->where('Barcode',$barCode)->value('patientId');
+        Db::table('phy_lis_reports')->where('patientId',$patientId)->update(['is_report_url'=>1]);
         return 'success';
     }
 }