新增搜索

This commit is contained in:
wucongxing 2023-07-27 09:15:30 +08:00
parent f99c218b1b
commit faabe27f32
2 changed files with 6 additions and 1 deletions

View File

@ -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)
}
// 查询总数量

View File

@ -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:是)
}