|
@@ -126,7 +126,7 @@ class Registerlist extends Base
|
|
|
$list[$k]['exam_project_name'] = $project['name'] ?? null;
|
|
|
$dinfo = DB::table('doctors')->where('id',$report_info['report_doctor_id'] ?? null)->field('realname,institution_id')->find();
|
|
|
$list[$k]['report_doctor'] = $dinfo['realname'] ?? null;
|
|
|
- $institution_name = DB::table('institution')->where('id',$dinfo['institution_id'])->cache(300)->field('name')->find();
|
|
|
+ $institution_name = DB::table('institution')->where('id',$dinfo['institution_id'] ?? null)->cache(300)->field('name')->find();
|
|
|
$list[$k]['institution_name'] = $institution_name['name'] ?? null;
|
|
|
}
|
|
|
$sql1 = "SELECT count(1) from exams as e ,patient_infos as p where e.institution_id='".$doctor['institution_id']."' and p.id=e.patient_id and e.status!=0 ".$where;
|