| xqd
@@ -701,7 +701,7 @@ class DoctorController extends AuthController
|
|
|
$wheres['schedule_type'] = 1;
|
|
|
$wheres[] = ['schedule_date','>=',date('Y-m-d',time())];
|
|
|
$list = SchedulePeriod::where($wheres)->whereIn('organization_id', $flag)->orderBy('schedule_date','asc')->get();
|
|
|
- SchedulePeriod::where($wheres)->delete();
|
|
|
+ SchedulePeriod::where($wheres)->whereIn('organization_id', $flag)->delete();
|
|
|
if ($list) {
|
|
|
$list = $list->toArray();
|
|
|
$selfList = [];
|
| xqd
@@ -792,7 +792,6 @@ class DoctorController extends AuthController
|
|
|
return out();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 计算24小时的时间区间段
|
|
|
* @param $minute 分钟比如:15
|