刘桂岩 3 years ago
parent
commit
79cf1ee228
1 changed files with 2 additions and 0 deletions
  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';
     }
 }