|
|
@@ -208,10 +208,12 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask |
|
|
|
//3、修改 subsidy_base 中 consumption_money、experience_money |
|
|
|
consumeTotal, _ := consumeValueTotal.Float64() |
|
|
|
experienceTotal, _ := experienceValueTotal.Float64() |
|
|
|
storeTotal, _ := storeValueTotal.Float64() |
|
|
|
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.StoreTotalMoney = zhios_order_relate_utils.Float64ToStr(zhios_order_relate_utils.StrToFloat64(subsidyBase.StoreTotalMoney) - storeTotal) |
|
|
|
subsidyBase.SettlementDate = today |
|
|
|
updateAffected, err := db.SubsidyBaseUpdate(session, subsidyBase.Id, subsidyBase, "consumption_total_money", "experience_total_money", "settlement_date") |
|
|
|
updateAffected, err := db.SubsidyBaseUpdate(session, subsidyBase.Id, subsidyBase, "consumption_total_money", "store_total_money", "experience_total_money", "settlement_date") |
|
|
|
if err != nil { |
|
|
|
_ = session.Rollback() |
|
|
|
return |
|
|
|