|
|
|
@ -55,6 +55,22 @@ public function GetItemList($searchInfo,$page,$pageSize){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//只显示参与预约科室的项目
|
|
|
|
|
|
|
|
if (!empty($searchInfo['appointmentDeptOnly'])) {
|
|
|
|
|
|
|
|
$deptNumbers = DB::table('s_department')
|
|
|
|
|
|
|
|
->where('appointment_enabled', 1)
|
|
|
|
|
|
|
|
->where('is_del', 0)
|
|
|
|
|
|
|
|
->where('department_status', 1)
|
|
|
|
|
|
|
|
->pluck('department_number')
|
|
|
|
|
|
|
|
->toArray();
|
|
|
|
|
|
|
|
if (!empty($deptNumbers)) {
|
|
|
|
|
|
|
|
$list->where(function($q) use ($deptNumbers) {
|
|
|
|
|
|
|
|
foreach ($deptNumbers as $num) {
|
|
|
|
|
|
|
|
$q->orWhere('hisExecDepts', 'like', '%"' . $num . '"%');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
$count = $list->count();
|
|
|
|
$count = $list->count();
|
|
|
|
$list= $list
|
|
|
|
$list= $list
|
|
|
|
->leftJoin('s_appointment_type', 's_check_item.reservation_method', '=', 's_appointment_type.id')
|
|
|
|
->leftJoin('s_appointment_type', 's_check_item.reservation_method', '=', 's_appointment_type.id')
|
|
|
|
|