From faabe27f32c69b0ee20c30e7e72aa31f4d08b643 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 27 Jul 2023 09:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/dao/userDoctor.go | 6 +++++- api/requests/userDoctor.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/dao/userDoctor.go b/api/dao/userDoctor.go index 9756521..f149d53 100644 --- a/api/dao/userDoctor.go +++ b/api/dao/userDoctor.go @@ -191,7 +191,11 @@ func (r *UserDoctorDao) GetUserDoctorPageSearch(getUserDoctorPage requests.GetUs query = query.Order("created_at desc") if getUserDoctorPage.IsEnterpriseDeepCooperation != nil { - query = query.Where("doctor_title = ?", getUserDoctorPage.DoctorTitle) + query = query.Where("is_enterprise_deep_cooperation = ?", getUserDoctorPage.IsEnterpriseDeepCooperation) + } + + if getUserDoctorPage.IsPlatformDeepCooperation != nil { + query = query.Where("is_platform_deep_cooperation = ?", getUserDoctorPage.IsPlatformDeepCooperation) } // 查询总数量 diff --git a/api/requests/userDoctor.go b/api/requests/userDoctor.go index 2aae679..a7a10b8 100644 --- a/api/requests/userDoctor.go +++ b/api/requests/userDoctor.go @@ -26,6 +26,7 @@ type GetUserDoctorPage struct { DoctorTitle *int `json:"doctor_title" form:"doctor_title" label:"医生职称"` // (1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师) InquiryService string `json:"inquiry_service" form:"inquiry_service" label:"问诊服务"` // (1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) IsEnterpriseDeepCooperation *int `json:"is_enterprise_deep_cooperation" form:"is_enterprise_deep_cooperation" label:"是否企业深度合作"` // (0:否 1:是) + IsPlatformDeepCooperation *int `json:"is_platform_deep_cooperation" form:"is_platform_deep_cooperation" label:"平台深度合作医生"` // 是否平台深度合作医生(0:否 1:是) IsSysDiagnoCooperation *int `json:"is_sys_diagno_cooperation" form:"is_sys_diagno_cooperation" label:"是否先思达合作医生"` // (0:否 1:是) }