From ebd33afb2066aecb052c304926abd3af45b707ef Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 21 Oct 2024 14:04:30 +0800 Subject: [PATCH] 1 --- rule/consume_integral_settlement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index 28cf6d6..1f77c27 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -142,7 +142,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask } userStatusList := userStatus(session, uids, 0, subsidyBase) storeStatusList := userStatus(session, storeUids, 1, subsidyBase) - sql := `select uid, MAX(stop_date) as max_stop_date from subsidy_with_user_flow where uid in(%s) and kind in(1,2) group by uid` + sql := `select uid, MAX(stop_date) as stop_date from subsidy_with_user_flow where uid in(%s) and kind in(1,2) group by uid` sql = fmt.Sprintf(sql, strings.Join(uids, ",")) one, _ := db.QueryNativeStringSess(session, sql) for _, v := range uids { @@ -156,7 +156,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask } } } - storesql := `select uid, MAX(stop_date) as max_stop_date from subsidy_with_user_flow where uid in(%s) and kind=3 group by uid` + storesql := `select uid, MAX(stop_date) as stop_date from subsidy_with_user_flow where uid in(%s) and kind=3 group by uid` storesql = fmt.Sprintf(storesql, strings.Join(uids, ",")) storeone, _ := db.QueryNativeStringSess(session, storesql) for _, v := range storeUids {