From 35c0925b0d3b107ca4dace6ef07b4f909c4e5922 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 9 Nov 2023 16:27:59 +0800 Subject: [PATCH] 1 --- api/service/doctorWithdrawal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/service/doctorWithdrawal.go b/api/service/doctorWithdrawal.go index 7b5d70e..9b1f046 100644 --- a/api/service/doctorWithdrawal.go +++ b/api/service/doctorWithdrawal.go @@ -277,7 +277,7 @@ func (r *DoctorWithdrawalService) PutDoctorWithdrawalExamine(req requests.PutDoc } } - tx.Commit() + // tx.Commit() return true, nil } @@ -382,7 +382,7 @@ func (r *DoctorWithdrawalService) getDoctorWithdrawalOrderAmountTotal(withdrawal var orderInquiryAmountTotal = decimal.NewFromFloat(orderInquiry.AmountTotal) - amountTotal = amountTotal.Sub(orderInquiryAmountTotal) + amountTotal = amountTotal.Add(orderInquiryAmountTotal) } // εˆ†ζˆζ―”δΎ‹