| xqd
@@ -574,7 +574,7 @@ class ApiController extends Controller
|
|
|
if($org_id != $idSum) $newBase[$tType-1]['status'] = 'other';
|
|
|
}
|
|
|
|
|
|
- $self = SelfSchedule::where(['docter_id'=>$docter_id,'schedule_date'=>$scheduleDate,'organization_id'=>$org_id])->GroupBy('type')->toArray();
|
|
|
+ $self = SelfSchedule::where(['docter_id'=>$docter_id,'schedule_date'=>$scheduleDate,'organization_id'=>$org_id])->get(['type']->GroupBy('type')->toArray();
|
|
|
if(!empty($self)){
|
|
|
foreach($self as $sf){
|
|
|
$newBase[$sf['type']]['status'] = true;
|