新增搜索

This commit is contained in:
2023-07-27 09:15:30 +08:00
parent f99c218b1b
commit faabe27f32
2 changed files with 6 additions and 1 deletions
+5 -1
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)
}
// 查询总数量