xiugai liebiao
This commit is contained in:
parent
65a3538f81
commit
e12cd67f84
@ -324,14 +324,9 @@ class UserDoctor extends Model
|
|||||||
"Hospital:hospital_id,hospital_name,hospital_status,hospital_level_name,province_id,city_id",
|
"Hospital:hospital_id,hospital_name,hospital_status,hospital_level_name,province_id,city_id",
|
||||||
"DoctorExpertise",
|
"DoctorExpertise",
|
||||||
"DoctorInquiryConfig" => function ($query) use ($is_search_welfare_reception) {
|
"DoctorInquiryConfig" => function ($query) use ($is_search_welfare_reception) {
|
||||||
$inquiry_type = [1,3];
|
$query->where('inquiry_mode', 1);
|
||||||
if (!empty($is_search_welfare_reception)){
|
|
||||||
$inquiry_type = [3];
|
|
||||||
}
|
|
||||||
|
|
||||||
$query->whereIn('inquiry_type', $inquiry_type)
|
|
||||||
->where('inquiry_mode', 1);
|
|
||||||
if (!empty($is_search_welfare_reception)){
|
if (!empty($is_search_welfare_reception)){
|
||||||
|
$query->where('inquiry_type', 3);
|
||||||
$query->where('is_enable', 1);
|
$query->where('is_enable', 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -353,18 +348,17 @@ class UserDoctor extends Model
|
|||||||
$query->where($doctor_expertise_params);
|
$query->where($doctor_expertise_params);
|
||||||
})
|
})
|
||||||
->whereHas('DoctorInquiryConfig', function ($query) use ($is_search_welfare_reception) {
|
->whereHas('DoctorInquiryConfig', function ($query) use ($is_search_welfare_reception) {
|
||||||
$inquiry_type = [1,3];
|
|
||||||
if (!empty($is_search_welfare_reception)){
|
|
||||||
$inquiry_type = [3];
|
|
||||||
}
|
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['inquiry_mode'] = 1;// 接诊方式:图文
|
$params['inquiry_mode'] = 1;// 接诊方式:图文
|
||||||
if (!empty($is_search_welfare_reception)){
|
if (!empty($is_search_welfare_reception)){
|
||||||
$params['is_enable'] = 1;
|
$params['is_enable'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query->where($params)->whereIn('inquiry_type', $inquiry_type);
|
$query->where($params);
|
||||||
|
|
||||||
|
if (!empty($is_search_welfare_reception)){
|
||||||
|
$query->where('inquiry_type', 3);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!empty($sort_order)){
|
if (!empty($sort_order)){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user