From fe21311390f6be4cc9341f687c175e8d827888e2 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 24 Jul 2024 13:35:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 af4e533..ab3cb80 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -143,7 +143,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask userStatusList := userStatus(session, uids, 0, subsidyBase) storeStatusList := userStatus(session, storeUids, 1, subsidyBase) for _, v := range uids { - sql := `select stop_date from subsidy_with_user_flow order by create_at desc where uid=%d and kind in(1,2) limit 1` + sql := `select stop_date from subsidy_with_user_flow where uid=%d and kind in(1,2) order by create_at desc limit 1` sql = fmt.Sprintf(sql, v) one, _ := db.QueryNativeStringSess(session, sql) if userStatusList[v]["status"] != "1" { @@ -154,7 +154,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask } } for _, v := range storeUids { - sql := `select stop_date from subsidy_with_user_flow order by create_at desc where uid=%d and kind=3 limit 1` + sql := `select stop_date from subsidy_with_user_flow where uid=%d and kind=3 order by create_at desc limit 1` sql = fmt.Sprintf(sql, v) one, _ := db.QueryNativeStringSess(session, sql) if storeStatusList[v]["status"] != "1" {