From 0bd944402682aab13427c526dacc06e9c1970770 Mon Sep 17 00:00:00 2001 From: ziming Date: Mon, 9 Jun 2025 15:00:25 +0800 Subject: [PATCH] pro order use notify --- 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 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)) })