1
This commit is contained in:
parent
5eee45a64b
commit
68c11baa23
@ -204,11 +204,11 @@ func (r *DoctorBankCardDao) GetDoctorBankCardExportListSearch(req requests.UserD
|
||||
|
||||
// 用户名称
|
||||
if req.UserName != "" {
|
||||
subQuery := global.Db.Model(&model.User{}).
|
||||
doctorSubQuery := global.Db.Model(&model.UserDoctor{}).
|
||||
Select("doctor_id").
|
||||
Where("user_name LIKE ?", "%"+req.UserName+"%")
|
||||
|
||||
query = query.Where(gorm.Expr("doctor_id IN (?)", subQuery))
|
||||
query = query.Where(gorm.Expr("doctor_id IN (?)", doctorSubQuery))
|
||||
}
|
||||
|
||||
// 银行卡号
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user