刘桂岩 пре 5 година
родитељ
комит
05586b49c3
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      application/inter/controller/Report.php

+ 6 - 6
application/inter/controller/Report.php

@@ -167,16 +167,16 @@ class Report extends Base
                 $sql = "SELECT a.id,a.severe,a.urgent,a.is_remote,a.accession_num,a.patient_num,a.exam_report,a.study_id,a.exam_datetime,a.exam_project,a.exam_status,a.exam_class,a.application_doctor,a.application_department,p.name,p.sex,p.age,ra.report_status FROM (exams as a,patient_infos as p) LEFT JOIN remote_application as ra on ra.exam_id=a.id where a.institution_id='".$doctor['institution_id']."' and p.id=a.patient_id ".$where." order by a.createdAt desc".$limit;
 //            }
 
-            /*if($doctor['institution_id'] == '13000003' and $page == 1 and empty($where)){
-                if(Cache::get('13000003_1_')){
-                    $list = Cache::get('13000003_1_');
+            if($doctor['institution_id'] == '13000003' and $page == 1 and empty($where)){
+                if(Cache::get('13000003_2')){
+                    $list = Cache::get('13000003_2');
                 }else{
                     $list = DB::query($sql);
-                    Cache::set('13000003_1_',$list,86400);
+                    Cache::set('13000003_2',$list,86400);
                 }
-            }else{*/
+            }else{
                 $list = DB::query($sql);
-            //}
+            }
             $csql = "SELECT count(1) FROM (exams as a,patient_infos as p) LEFT JOIN remote_application as ra on ra.exam_id=a.id where a.institution_id='".$doctor['institution_id']."' and p.id=a.patient_id ".$where;
             $count = DB::query($csql);
             log::record('请求的sql语句');