This commit is contained in:
wucongxing8150 2024-10-21 14:11:37 +08:00
parent 5eee45a64b
commit 68c11baa23

View File

@ -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))
}
// 银行卡号