diff --git a/Laravel/app/Http/Controllers/API/H5/PlanController.php b/Laravel/app/Http/Controllers/API/H5/PlanController.php index dec92b6..7385a7d 100644 --- a/Laravel/app/Http/Controllers/API/H5/PlanController.php +++ b/Laravel/app/Http/Controllers/API/H5/PlanController.php @@ -30,6 +30,7 @@ class PlanController extends Controller ->whereRaw('CONCAT(date, " ", time) >?', [$currentDateTime]) ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', [json_encode($checkup_type_id)]) ->where(['hospital_id'=>$hospital_id,'type'=>1]) + ->where('is_vip','<>',1) ->whereIn('use_type',[0,$use_type]); // if($use_type==1){ // $list=$list->where(['amount_limit1'=>0])->orWhere('amount_limit1','>=',$amount); @@ -98,6 +99,7 @@ class PlanController extends Controller ->whereRaw('CONCAT(date, " ", time) >?', [$currentDateTime]) ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")',[$checkup_type_id]) ->where(['hospital_id'=>$hospital_id,'type'=>1]) + ->where('is_vip','<>',1) ->whereIn('use_type',[0,$use_type]); if ($use_type == 1) { $list = $list->where(function ($query) use ($amount) { @@ -127,6 +129,7 @@ class PlanController extends Controller ->whereRaw('CONCAT(date, " ", time) >?', [$currentDateTime]) ->whereRaw('JSON_CONTAINS(checkup_type_id, ?, "$")', [$checkup_type_id]) ->where(['hospital_id'=>$hospital_id,'type'=>1]) + ->where('is_vip','<>',1) ->whereIn('use_type',[0,$use_type]); // if($use_type==1){ // $weeklist=$weeklist->where(['amount_limit1'=>0])->orWhere('amount_limit1','>=',$amount);