FinByStockIdInBatches

This commit is contained in:
ziming 2025-06-06 09:04:10 +08:00
parent 7a02c6047c
commit 15de8ab277
1 changed files with 1 additions and 1 deletions

View File

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