| xqd
@@ -187,7 +187,7 @@ class DocterController extends AuthController
|
|
|
'longitude' => 'numeric',
|
|
|
]);
|
|
|
$user = $this->user;
|
|
|
-
|
|
|
+ //todo Schedule表 考虑是否有必要性,日期可以通过timePeriod取到。
|
|
|
$builder = Schedule::with(['schedulePeriod.timePeriod', 'schedulePeriod.organization'])->where('docter_id', $req['docter_id'])->where('schedule_day', '>=', date('Ymd'));
|
|
|
if (!empty($req['organization_id'])) {
|
|
|
$builder->where('organization_id', $req['organization_id']);
|