号源区分现场号

main
yanzai 11 months ago
parent be63847fdf
commit 45dbf5934c

@ -11,7 +11,7 @@ class CheckUpTypeController extends Controller
//体检类型列表
public function GetEnableList()
{
$list=DB::table('checkup_type')->where(['is_del'=>0,'status'=>1])->get();
$list=DB::table('checkup_type')->where(['is_del'=>0,'status'=>1])->orWhere('id',8)->get();
return \Yz::Return(true,'查询完成',['list'=>$list]);
}
}

@ -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);

Loading…
Cancel
Save