voucher
This commit is contained in:
parent
b6a618b10c
commit
e61da58512
|
|
@ -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))
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue