新增多点审核状态变更
This commit is contained in:
parent
6527bcc023
commit
fc1d75f13c
@ -261,6 +261,9 @@ func (r *UserDoctorDao) GetUserDoctorPendingPageSearch(p requests.GetUserDoctorP
|
|||||||
query = query.Where(gorm.Expr("hospital_id IN (?)", subQuery))
|
query = query.Where(gorm.Expr("hospital_id IN (?)", subQuery))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 排序
|
||||||
|
query = query.Order("created_at desc")
|
||||||
|
|
||||||
// 查询总数量
|
// 查询总数量
|
||||||
if err := query.Count(&totalRecords).Error; err != nil {
|
if err := query.Count(&totalRecords).Error; err != nil {
|
||||||
return nil, 0, err
|
return nil, 0, err
|
||||||
@ -320,6 +323,9 @@ func (r *UserDoctorDao) GetUserDoctorMultiPageSearch(p requests.GetMultiPage, pa
|
|||||||
query = query.Where(gorm.Expr("hospital_id IN (?)", subQuery))
|
query = query.Where(gorm.Expr("hospital_id IN (?)", subQuery))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 排序
|
||||||
|
query = query.Order("created_at desc")
|
||||||
|
|
||||||
// 查询总数量
|
// 查询总数量
|
||||||
if err := query.Count(&totalRecords).Error; err != nil {
|
if err := query.Count(&totalRecords).Error; err != nil {
|
||||||
return nil, 0, err
|
return nil, 0, err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user