刘桂岩 5 years ago
parent
commit
b446743138

+ 1 - 1
application/index/controller/Index.php

@@ -15,7 +15,7 @@ class Index extends Controller
 {
     public function  index(){
         // echo "index";
-        return $this->redirect('http://work.pacsonline.cn',302);;
+        return $this->redirect('http://work.pacsonline.cn',302);
     }
     public function get_studiesinfo(){
         $study_id = $_REQUEST['study_id'];

+ 1 - 2
application/manage/controller/Counts.php

@@ -101,14 +101,13 @@ class Counts extends Base {
         }
         $count = DB::table('studies')
             ->alias('s')
-            ->distinct(true)
             ->join(['patient_infos'=>'p'],'p.id=s.patient_id')
             ->join(['exams'=>'e'],'e.study_id=s.id')
             ->join(['user_bind'=>'u'],'u.patient_id=s.patient_id','left')
             ->join(['institution'=>'ins'],'ins.id=e.institution_id','left')
             ->where($institution_where)
             ->where($search)
-            ->count();
+            ->count('DISTINCT e.id');
         $list = DB::table('studies')
             ->alias('s')
             ->distinct(true)