333
This commit is contained in:
parent
68c11baa23
commit
9883d1d5fb
@ -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))
|
||||
}
|
||||
|
||||
// 银行卡号
|
||||
|
||||
@ -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 = "已打款"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user