新增搜索医生参数问题
This commit is contained in:
@@ -106,7 +106,7 @@ func (r *UserDoctorDao) GetUserDoctorPageSearch(getUserDoctorPage requests.GetUs
|
||||
}
|
||||
|
||||
// 状态
|
||||
if getUserDoctorPage.UserStatus != 0 {
|
||||
if getUserDoctorPage.UserStatus != nil {
|
||||
query = query.Where("status = ?", getUserDoctorPage.UserStatus)
|
||||
}
|
||||
|
||||
@@ -125,26 +125,26 @@ func (r *UserDoctorDao) GetUserDoctorPageSearch(getUserDoctorPage requests.GetUs
|
||||
}
|
||||
|
||||
// 实名认证状态
|
||||
if getUserDoctorPage.IDCardStatus != 0 {
|
||||
if getUserDoctorPage.IDCardStatus != nil {
|
||||
query = query.Where("idcard_status = ?", getUserDoctorPage.IDCardStatus)
|
||||
}
|
||||
|
||||
// 身份认证状态
|
||||
if getUserDoctorPage.IdenAuthStatus != 0 {
|
||||
if getUserDoctorPage.IdenAuthStatus != nil {
|
||||
query = query.Where("iden_auth_status = ?", getUserDoctorPage.IdenAuthStatus)
|
||||
}
|
||||
|
||||
// 医生多点执业认证状态
|
||||
if getUserDoctorPage.MultiPointStatus != 0 {
|
||||
if getUserDoctorPage.MultiPointStatus != nil {
|
||||
query = query.Where("multi_point_status = ?", getUserDoctorPage.MultiPointStatus)
|
||||
}
|
||||
|
||||
// 是否首页推荐
|
||||
if getUserDoctorPage.IsRecommend != 0 {
|
||||
if getUserDoctorPage.IsRecommend != nil {
|
||||
query = query.Where("is_recommend = ?", getUserDoctorPage.IsRecommend)
|
||||
}
|
||||
|
||||
if getUserDoctorPage.DoctorTitle != 0 {
|
||||
if getUserDoctorPage.DoctorTitle != nil {
|
||||
query = query.Where("doctor_title = ?", getUserDoctorPage.DoctorTitle)
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ func (r *UserDoctorDao) GetUserDoctorPageSearch(getUserDoctorPage requests.GetUs
|
||||
|
||||
}
|
||||
|
||||
if getUserDoctorPage.IsEnterpriseDeepCooperation != 0 {
|
||||
if getUserDoctorPage.IsEnterpriseDeepCooperation != nil {
|
||||
query = query.Where("doctor_title = ?", getUserDoctorPage.DoctorTitle)
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ func (r *UserDoctorDao) GetUserDoctorPendingPageSearch(p requests.GetUserDoctorP
|
||||
}
|
||||
|
||||
// 身份认证状态
|
||||
if p.IdenAuthStatus != 0 {
|
||||
if p.IdenAuthStatus != nil {
|
||||
query = query.Where("iden_auth_status = ?", p.IdenAuthStatus)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user