多笔立减

This commit is contained in:
ziming 2025-08-11 17:42:30 +08:00
parent ca021f71a9
commit 0a94a58afa
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@ func (p *OrderRepoImpl) SpecifyFindInBatches(ctx context.Context, req *bo.FindIn
func (p *OrderRepoImpl) FinSucByStockIdInBatches(ctx context.Context, req *do.WechatQuery, fun func(ctx context.Context, rows []*bo.OrderBo) error) error {
tx := p.DB(ctx).Where("status = ?", vo.OrderStatusSuccess.GetValue()).Where("activity_id = ''")
tx := p.DB(ctx).
Where("status = ?", vo.OrderStatusSuccess.GetValue()).
Where("activity_id = ''")
if req.ProductNo != "" {
tx = tx.Where("product_no = ?", req.ProductNo)