|
|
|
|
@ -21,7 +21,10 @@ class PlanController extends Controller
|
|
|
|
|
$list=DB::table('plans')
|
|
|
|
|
->where('date',$date)->whereIn('status',[1])
|
|
|
|
|
->whereRaw('CONCAT(date, " ", time) >?', [$currentDateTime])
|
|
|
|
|
->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")',[$checkup_type_id])
|
|
|
|
|
->where(function($query) use ($checkup_type_id) {
|
|
|
|
|
$query->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', [$checkup_type_id])
|
|
|
|
|
->orWhereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', ["8"]);
|
|
|
|
|
})
|
|
|
|
|
->where(['hospital_id'=>$hospital_id,'type'=>1,'is_del'=>0])
|
|
|
|
|
->where('is_vip','=',$is_vip);
|
|
|
|
|
|
|
|
|
|
|