Quellcode durchsuchen

更新

guide_order
huangjiajun vor 3 Monaten
Ursprung
Commit
b33ac4f156
2 geänderte Dateien mit 0 neuen und 12 gelöschten Zeilen
  1. +0
    -8
      app/svc/svc_order_return_money_save.go
  2. +0
    -4
      app/svc/svc_order_track_save.go

+ 0
- 8
app/svc/svc_order_return_money_save.go Datei anzeigen

@@ -38,10 +38,6 @@ func OrderReturnMoneyRelateInsert(eg *xorm.Engine, oid int64, pvd string, create
var userStatistics1 model.UserDayAmount
eg.Where("uid=? and date=?", v.Uid, nowDay).Get(&userStatistics1)
if userStatistics1.Id != 0 {
userStatistics1 = model.UserDayAmount{
Date: utils.StrToInt(nowDay),
Uid: v.Uid,
}
userStatistics1.Amount = utils.Float64ToStrByPrec(utils.StrToFloat64(userStatistics1.Amount)-v.Amount-utils.StrToFloat64(v.AdditionalSubsidy), 4)
eg.Where("id=?", userStatistics1.Id).Cols("amount").Update(&userStatistics1)
}
@@ -170,10 +166,6 @@ func PlayLetOrderReturnMoneyRelateInsert(eg *xorm.Engine, oid int64, pvd string,
var userStatistics1 model.UserDayAmount
eg.Where("uid=? and date=?", v.Uid, nowDay).Get(&userStatistics1)
if userStatistics1.Id != 0 {
userStatistics1 = model.UserDayAmount{
Date: utils.StrToInt(nowDay),
Uid: v.Uid,
}
userStatistics1.Amount = utils.Float64ToStrByPrec(utils.StrToFloat64(userStatistics1.Amount)-v.Amount-utils.StrToFloat64(v.AdditionalSubsidy), 4)
eg.Where("id=?", userStatistics1.Id).Cols("amount").Update(&userStatistics1)
}


+ 0
- 4
app/svc/svc_order_track_save.go Datei anzeigen

@@ -537,10 +537,6 @@ func OrderRelateInsert(eg *xorm.Engine, oid int64, pvd string, createTime int, l
var userStatistics1 model.UserDayAmount
eg.Where("uid=? and date=?", v.Uid, nowDay).Get(&userStatistics1)
if userStatistics1.Id != 0 {
userStatistics1 = model.UserDayAmount{
Date: utils.StrToInt(nowDay),
Uid: v.Uid,
}
userStatistics1.Amount = utils.Float64ToStrByPrec(utils.StrToFloat64(userStatistics1.Amount)-v.Amount-utils.StrToFloat64(v.AdditionalSubsidy), 4)
eg.Where("id=?", userStatistics1.Id).Cols("amount").Update(&userStatistics1)
}


Laden…
Abbrechen
Speichern