| xqd
@@ -428,7 +428,7 @@ class ApiController extends Controller
|
|
|
}
|
|
|
|
|
|
//获取月排班
|
|
|
- public function get_month_schedule()
|
|
|
+ public function getMonthSchedule()
|
|
|
{
|
|
|
$date = request('date');
|
|
|
$org_id = intval(request('org_id'));
|
| xqd
@@ -460,10 +460,7 @@ class ApiController extends Controller
|
|
|
['status' => false, 'type' => 3, 'start' => $serviceConfig[3]['nightStartTime'], 'end' => $serviceConfig[3]['nightEndTime']],
|
|
|
];
|
|
|
}
|
|
|
-//
|
|
|
-// self::baseMonthSchedule($month_day,$baseData);
|
|
|
-// return [];
|
|
|
-// }
|
|
|
+
|
|
|
|
|
|
for ($i = 1; $i <= $month_day; $i++) {
|
|
|
$week = date('N', $start_time + ($i - 1) * 86400);
|
| xqd
@@ -499,14 +496,7 @@ class ApiController extends Controller
|
|
|
}
|
|
|
//
|
|
|
}
|
|
|
- //覆盖自定义排班
|
|
|
-// echo '医生id '.$docter_id.' 机构id '.$org_id.' 周几'.$week.' 日期 '.$scheduleDate.'<br>';
|
|
|
-// $self = SelfSchedule::where(['docter_id'=>$docter_id,'schedule_date'=>$scheduleDate,'schedule_type'=>$sType])->get()->GroupBy('type')->toArray();
|
|
|
-// if(!empty($self)){
|
|
|
-// foreach($self as $k=>$sf){
|
|
|
-// $newBase[$k-1]['status'] = true;
|
|
|
-// }
|
|
|
-// }
|
|
|
+
|
|
|
$scheduleList[$i - 1] = [
|
|
|
'schedulelingList' => $newBase,
|
|
|
'date' => $i,
|
| xqd
@@ -532,13 +522,7 @@ class ApiController extends Controller
|
|
|
if ($org_id == $idSum) $newBase[$type - 1]['status'] = true;
|
|
|
}
|
|
|
}
|
|
|
- //覆盖自定义排班
|
|
|
-// $self = SelfSchedule::where(['docter_id'=>$docter_id,'schedule_date'=>$scheduleDate,'schedule_type'=>$sType,'organization_id'=>$org_id])->get(['type'])->GroupBy('type')->toArray();
|
|
|
-// if(!empty($self)){
|
|
|
-// foreach($self as $k=>$sf){
|
|
|
-// $newBase[$k-1]['status'] = true;
|
|
|
-// }
|
|
|
-// }
|
|
|
+
|
|
|
$scheduleList[$i - 1] = [
|
|
|
'schedulelingList' => $newBase,
|
|
|
'date' => $i,
|