This commit is contained in:
wucongxing 2023-11-02 14:52:26 +08:00
parent ca3bbaf77b
commit 80e3c1cdde

View File

@ -123,7 +123,7 @@ func (r *DoctorAccountDao) GetDoctorAccountPage(req requests.GetDoctorAccountPag
// 用户名称 // 用户名称
if req.UserName != "" { if req.UserName != "" {
subQuery := global.Db.Model(&model.User{}). subQuery := global.Db.Model(&model.UserDoctor{}).
Select("doctor_id"). Select("doctor_id").
Where("user_name LIKE ?", "%"+req.UserName+"%") Where("user_name LIKE ?", "%"+req.UserName+"%")