满足压测处理
This commit is contained in:
parent
a91114d8ae
commit
b58a3f20a4
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue