diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index 36326c0..ffee52f 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -46,7 +46,7 @@ func (p *OrderRepoImpl) FinSucByStockIdInBatches(ctx context.Context, req *do.We var results = make([]*model.Order, 0) - result := tx.FindInBatches(&results, 50, func(tx *gorm.DB, batch int) error { + result := tx.FindInBatches(&results, 100, func(tx *gorm.DB, batch int) error { return fun(ctx, p.ToBos(results)) })