2
This commit is contained in:
parent
035676ba57
commit
db0e61429d
@ -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+"%")
|
||||
|
||||
@ -138,6 +138,7 @@ type PutMulti struct {
|
||||
|
||||
// GetUserDoctorList 获取医生列表
|
||||
type GetUserDoctorList struct {
|
||||
DoctorId string `json:"doctor_id" form:"doctor_id" label:"医生id"`
|
||||
UserName string `json:"user_name" form:"user_name" label:"医生姓名"`
|
||||
IDCardStatus *int `json:"idcard_status" form:"idcard_status" label:"身份证状态"` // (0:未认证 1:认证通过 2:认证失败)
|
||||
IdenAuthStatus *int `json:"iden_auth_status" form:"iden_auth_status" label:"认证状态"` // (0:未认证 1:认证通过 2:审核中 3:认证失败)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user