增加任务2

This commit is contained in:
ziming 2025-06-05 10:30:25 +08:00
parent c89fb9f27a
commit c556912b1b
1 changed files with 0 additions and 1 deletions

View File

@ -37,7 +37,6 @@ func (p *OrderRepoImpl) FinByStockIdInBatches(ctx context.Context, batchNo strin
result := p.DB(ctx). result := p.DB(ctx).
Where("batch_no = ?", batchNo). Where("batch_no = ?", batchNo).
Where("status = ?", vo.OrderStatusSuccess.GetValue()). Where("status = ?", vo.OrderStatusSuccess.GetValue()).
Limit(20).
FindInBatches(&results, 10, func(tx *gorm.DB, batch int) error { FindInBatches(&results, 10, func(tx *gorm.DB, batch int) error {
return fun(ctx, p.ToBos(results)) return fun(ctx, p.ToBos(results))
}) })