This commit is contained in:
2024-06-07 12:28:23 +08:00
parent 035676ba57
commit db0e61429d
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -366,6 +366,11 @@ func (r *UserDoctorDao) GetUserDoctorListSearch(req requests.GetUserDoctorList)
return db.Select("hospital_id,hospital_name,hospital_level_name")
})
// 医生id
if req.DoctorId != "" {
query = query.Where("doctor_id = ?", req.DoctorId)
}
// 用户名称
if req.UserName != "" {
query = query.Where("user_name LIKE ?", "%"+req.UserName+"%")