This commit is contained in:
2023-10-18 11:21:17 +08:00
parent 70cd325416
commit 43b4de0468
2 changed files with 17 additions and 14 deletions
+4 -4
View File
@@ -324,10 +324,10 @@ class UserDoctor extends Model
"Hospital:hospital_id,hospital_name,hospital_status,hospital_level_name,province_id,city_id",
"DoctorExpertise",
"DoctorInquiryConfig" => function ($query) use ($is_search_welfare_reception) {
$inquiry_type = [1,3,4];
$inquiry_type = [1,3];
$is_enable = 0;
if (!empty($is_search_welfare_reception)){
$inquiry_type = [3,4];
$inquiry_type = [3];
$is_enable = 1;
}
@@ -353,10 +353,10 @@ class UserDoctor extends Model
$query->where($doctor_expertise_params);
})
->whereHas('DoctorInquiryConfig', function ($query) use ($is_search_welfare_reception) {
$inquiry_type = [1,3,4];
$inquiry_type = [1,3];
$is_enable = 0;
if (!empty($is_search_welfare_reception)){
$inquiry_type = [3,4];
$inquiry_type = [3];
$is_enable = 1;
}