unknown 4 년 전
부모
커밋
cef9d82a9c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/PracticeManagementController.php

+ 1 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -988,7 +988,7 @@ class PracticeManagementController extends Controller
             }
         }
 
-        $patientsQuery->where('notes_total', '>', 0);
+        $patientsQuery->whereRaw('(SELECT COUNT(*) FROM note where note.client_id = client.id) > 0');
 
         $patientsQuery->orderBy('notes_without_claiming_closed', 'DESC');