From e61da58512bcb91d086a80f2a730662f081e4bd3 Mon Sep 17 00:00:00 2001 From: ziming Date: Thu, 13 Nov 2025 18:03:21 +0800 Subject: [PATCH] voucher --- internal/data/repoimpl/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index 6a70b7a..27b52bb 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -134,7 +134,7 @@ func (p *OrderRepoImpl) FinUsedInBatches(ctx context.Context, req *do.WechatUsed } // 显式清除排序,移除默认的 ORDER BY - result := tx.Order("receive_success_time asc").FindInBatches(&results, 500, func(tx *gorm.DB, batch int) error { + result := tx.Order("last_use_time asc").FindInBatches(&results, 500, func(tx *gorm.DB, batch int) error { return fun(ctx, p.ToBos(results)) })