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)) })