From c04645942f7253bda83125ab28369cee7825dcac Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 27 Jun 2024 10:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_comm_deal_commission.go | 2 +- app/svc/svc_deal_commission.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/svc/svc_comm_deal_commission.go b/app/svc/svc_comm_deal_commission.go index e85f2f9..f2255d1 100644 --- a/app/svc/svc_comm_deal_commission.go +++ b/app/svc/svc_comm_deal_commission.go @@ -272,7 +272,7 @@ func CommCommSettleMoney(session *xorm.Session, item *model.CommOrdListRelate, a finUserFlow.BeforeAmount = userProfile.FinValid userProfile.FinValid = utils.Float64ToStrByPrec(utils.AnyToFloat64(userProfile.FinValid)+utils.AnyToFloat64(item.Amount), 8) userProfile.FinTotal = userProfile.FinTotal + utils.StrToFloat32(utils.Float64ToStrByPrec(item.Amount, 8)) - affected, err = db2.UserProfileUpdateWithSession(session, item.Uid, userProfile) + affected, err = db2.UserProfileUpdateWithSession(session, item.Uid, userProfile, "fin_valid", "fin_total") finUserFlow.AfterAmount = userProfile.FinValid has, errs := db2.InsertCommWithSession( session, &finUserFlow) diff --git a/app/svc/svc_deal_commission.go b/app/svc/svc_deal_commission.go index 5766f3f..aa258f7 100644 --- a/app/svc/svc_deal_commission.go +++ b/app/svc/svc_deal_commission.go @@ -339,7 +339,7 @@ func CommSettleMoney(session *xorm.Session, item *model.TaskOrdListRelate, appNa finUserFlow.BeforeAmount = userProfile.FinValid userProfile.FinValid = utils.Float64ToStrByPrec(utils.AnyToFloat64(userProfile.FinValid)+utils.AnyToFloat64(item.Amount), 8) userProfile.FinTotal = userProfile.FinTotal + utils.StrToFloat32(utils.Float64ToStrByPrec(item.Amount, 8)) - affected, err = db2.UserProfileUpdateWithSession(session, item.Uid, userProfile) + affected, err = db2.UserProfileUpdateWithSession(session, item.Uid, userProfile, "fin_valid", "fin_total") finUserFlow.AfterAmount = userProfile.FinValid has, errs := db2.InsertCommWithSession( session, &finUserFlow)