|
|
|
@ -88,6 +88,7 @@ class PlanController extends Controller
|
|
|
|
$hospital_id =request('hospital');
|
|
|
|
$hospital_id =request('hospital');
|
|
|
|
$openid =request('openid');
|
|
|
|
$openid =request('openid');
|
|
|
|
$person_id=request('person_id');
|
|
|
|
$person_id=request('person_id');
|
|
|
|
|
|
|
|
$person_sex=request('person_sex');
|
|
|
|
$combo_id=request('combo_id');
|
|
|
|
$combo_id=request('combo_id');
|
|
|
|
$date=request('date');
|
|
|
|
$date=request('date');
|
|
|
|
$use_type=request('use_type');//使用类型 1个检 2团检
|
|
|
|
$use_type=request('use_type');//使用类型 1个检 2团检
|
|
|
|
@ -116,6 +117,9 @@ class PlanController extends Controller
|
|
|
|
if(!!$personInfo){
|
|
|
|
if(!!$personInfo){
|
|
|
|
$list=$list->whereIn('sex',[0,$personInfo->sex]);
|
|
|
|
$list=$list->whereIn('sex',[0,$personInfo->sex]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($person_sex)){
|
|
|
|
|
|
|
|
$list=$list->whereIn('sex',[0,$person_sex]);
|
|
|
|
|
|
|
|
}
|
|
|
|
if ($use_type == 1) {
|
|
|
|
if ($use_type == 1) {
|
|
|
|
$list = $list->where(function ($query) use ($amount) {
|
|
|
|
$list = $list->where(function ($query) use ($amount) {
|
|
|
|
$query->where('amount_limit1', 0)->orWhere('amount_limit1', '>=', $amount);
|
|
|
|
$query->where('amount_limit1', 0)->orWhere('amount_limit1', '>=', $amount);
|
|
|
|
|