满足压测处理

This commit is contained in:
李子铭 2025-03-21 15:15:17 +08:00
parent a91114d8ae
commit b58a3f20a4
2 changed files with 2 additions and 6 deletions

View File

@ -76,11 +76,6 @@ func (v *VoucherBiz) create(ctx context.Context, req *bo.OrderCreateReqBo, produ
Attach: req.Attach,
}
if product.ProductNo == "001" {
// 压测商品
o.Status = vo.OrderStatusSuccess
}
return v.OrderRepo.Create(ctx, o)
}

View File

@ -76,7 +76,8 @@ func (p *OrderRepoImpl) Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderB
}
if req.ProductNo == "001" {
req.VoucherNo = req.OrderNo
info.VoucherNo = req.OrderNo
info.Status = vo.OrderStatusSuccess.GetValue()
}
tx := p.DB(ctx).Create(info)