diff --git a/api/service/doctorWithdrawal.go b/api/service/doctorWithdrawal.go index 9a23da9..150b6f9 100644 --- a/api/service/doctorWithdrawal.go +++ b/api/service/doctorWithdrawal.go @@ -366,7 +366,7 @@ func (r *DoctorWithdrawalService) getDoctorWithdrawalOrderAmountTotal(withdrawal return 0, errors.New("存在未结束订单,数据错误") } - if orderInquiry.IsWithdrawal != 0 { + if orderInquiry.IsWithdrawal == 1 { return 0, errors.New("存在已被提现订单,数据错误") }