Przeglądaj źródła

更新

one_orenge
huangjiajun 4 miesięcy temu
rodzic
commit
c04645942f
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      app/svc/svc_comm_deal_commission.go
  2. +1
    -1
      app/svc/svc_deal_commission.go

+ 1
- 1
app/svc/svc_comm_deal_commission.go Wyświetl plik

@@ -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)


+ 1
- 1
app/svc/svc_deal_commission.go Wyświetl plik

@@ -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)


Ładowanie…
Anuluj
Zapisz