|
@@ -272,7 +272,7 @@ func CommCommSettleMoney(session *xorm.Session, item *model.CommOrdListRelate, a |
|
|
finUserFlow.BeforeAmount = userProfile.FinValid |
|
|
finUserFlow.BeforeAmount = userProfile.FinValid |
|
|
userProfile.FinValid = utils.Float64ToStrByPrec(utils.AnyToFloat64(userProfile.FinValid)+utils.AnyToFloat64(item.Amount), 8) |
|
|
userProfile.FinValid = utils.Float64ToStrByPrec(utils.AnyToFloat64(userProfile.FinValid)+utils.AnyToFloat64(item.Amount), 8) |
|
|
userProfile.FinTotal = userProfile.FinTotal + utils.StrToFloat32(utils.Float64ToStrByPrec(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 |
|
|
finUserFlow.AfterAmount = userProfile.FinValid |
|
|
has, errs := db2.InsertCommWithSession( |
|
|
has, errs := db2.InsertCommWithSession( |
|
|
session, &finUserFlow) |
|
|
session, &finUserFlow) |
|
|