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