瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
55ff4c1d04
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      rule/consume_integral_settlement.go

+ 2
- 1
rule/consume_integral_settlement.go 查看文件

@@ -130,7 +130,8 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
experienceTotal, _ := experienceValueTotal.Float64() experienceTotal, _ := experienceValueTotal.Float64()
subsidyBase.ConsumptionTotalMoney = zhios_order_relate_utils.Float64ToStr(zhios_order_relate_utils.StrToFloat64(subsidyBase.ConsumptionTotalMoney) - consumeTotal) subsidyBase.ConsumptionTotalMoney = zhios_order_relate_utils.Float64ToStr(zhios_order_relate_utils.StrToFloat64(subsidyBase.ConsumptionTotalMoney) - consumeTotal)
subsidyBase.ExperienceTotalMoney = zhios_order_relate_utils.Float64ToStr(zhios_order_relate_utils.StrToFloat64(subsidyBase.ExperienceTotalMoney) - experienceTotal) subsidyBase.ExperienceTotalMoney = zhios_order_relate_utils.Float64ToStr(zhios_order_relate_utils.StrToFloat64(subsidyBase.ExperienceTotalMoney) - experienceTotal)
updateAffected, err := db.SubsidyBaseUpdate(session, subsidyBase.Id, subsidyBase, "consumption_money", "experience_money")
subsidyBase.SettlementDate = today
updateAffected, err := db.SubsidyBaseUpdate(session, subsidyBase.Id, subsidyBase, "consumption_total_money", "experience_total_money", "settlement_date")
if err != nil { if err != nil {
_ = session.Rollback() _ = session.Rollback()
return return


Loading…
取消
儲存