From 15de8ab27746990826a0692a5f5b0e2563fe2f7c Mon Sep 17 00:00:00 2001 From: ziming Date: Fri, 6 Jun 2025 09:04:10 +0800 Subject: [PATCH] FinByStockIdInBatches --- 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 9d2d180..0be4e8b 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -37,7 +37,7 @@ func (p *OrderRepoImpl) FinByStockIdInBatches(ctx context.Context, batchNo strin result := p.DB(ctx). Where("batch_no = ?", batchNo). Where("status = ?", vo.OrderStatusSuccess.GetValue()). - FindInBatches(&results, 20, func(tx *gorm.DB, batch int) error { + FindInBatches(&results, 50, func(tx *gorm.DB, batch int) error { return fun(ctx, p.ToBos(results)) })