This commit is contained in:
wucongxing8150 2024-10-21 14:18:59 +08:00
parent 68c11baa23
commit 9883d1d5fb
2 changed files with 3 additions and 3 deletions

View File

@ -130,11 +130,11 @@ func (r *DoctorBankCardDao) GetDoctorBankCardPage(req requests.GetUserDoctorBank
// 用户名称
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))
}
// 银行卡号

View File

@ -416,7 +416,7 @@ func (r *ExportService) DoctorWithdrawal(doctorWithdrawals []*model.DoctorWithdr
paymentStatus := "未知"
if v.PaymentStatus == 0 {
paymentStatus = "未打款"
} else if v.ExamineStatus == 1 {
} else if v.PaymentStatus == 1 {
paymentStatus = "已打款"
}