| xqd
@@ -187,9 +187,9 @@ class DocterController extends AuthController
|
|
|
'longitude' => 'numeric',
|
|
|
]);
|
|
|
$builder = Schedule::with(['schedulePeriod.timePeriod', 'schedulePeriod.organization'])->where('docter_id', $req['docter_id'])->where('schedule_type',1)->where('schedule_day', '>=', date('Ymd'))->orderBy('schedule_day');
|
|
|
- if (!empty($req['organization_id'])) {
|
|
|
- $builder->where('organization_id', $req['organization_id']);
|
|
|
- }
|
|
|
+// if (!empty($req['organization_id'])) {
|
|
|
+// $builder->where('organization_id', $req['organization_id']);
|
|
|
+// }
|
|
|
$data = $builder->paginate($req['per_page']??15)->toArray();
|
|
|
if (!empty($data)) {
|
|
|
foreach ($data['data'] as $k => &$v) {
|