From 28aeec318b6459e54e3d9f56fbe8692809dd19e5 Mon Sep 17 00:00:00 2001 From: yanzai Date: Wed, 23 Oct 2024 00:43:21 +0800 Subject: [PATCH] bug --- Laravel/app/Http/Controllers/API/H5/PlanController.php | 4 ++-- h5/pages/main/index/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/H5/PlanController.php b/Laravel/app/Http/Controllers/API/H5/PlanController.php index 873400d..044215a 100644 --- a/Laravel/app/Http/Controllers/API/H5/PlanController.php +++ b/Laravel/app/Http/Controllers/API/H5/PlanController.php @@ -28,7 +28,7 @@ class PlanController extends Controller $list=DB::table('plans') ->whereBetween('date',[$first_day,$last_day])->whereIn('status',[1]) ->whereRaw('CONCAT(date, " ", time) >?', [$currentDateTime]) - ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', [$checkup_type_id]) + ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', [json_encode($checkup_type_id)]) ->where(['hospital_id'=>$hospital_id,'type'=>1]) ->whereIn('use_type',[0,$use_type]); // if($use_type==1){ @@ -96,7 +96,7 @@ class PlanController extends Controller $list=DB::table('plans') ->where('date',$date)->whereIn('status',[1,2]) ->whereRaw('CONCAT(date, " ", time) >?', [$currentDateTime]) - ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', [$checkup_type_id]) + ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")',[json_encode($checkup_type_id)]) ->where(['hospital_id'=>$hospital_id,'type'=>1]) ->whereIn('use_type',[0,$use_type]); if ($use_type == 1) { diff --git a/h5/pages/main/index/index.vue b/h5/pages/main/index/index.vue index 3aa2bf5..70e520d 100644 --- a/h5/pages/main/index/index.vue +++ b/h5/pages/main/index/index.vue @@ -281,7 +281,7 @@ - 10210900 + 10221910