改造接口
This commit is contained in:
parent
2c7d2581f7
commit
9f768f037c
|
|
@ -122,16 +122,17 @@ func (this *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error {
|
|||
return nil // 多笔立减活动,不做通知(?不知道有没有核销通知,多笔核销情况未知)
|
||||
}
|
||||
|
||||
return this.cmbNotify(ctx, order.ID)
|
||||
return this.cmbNotify(ctx, order)
|
||||
}
|
||||
|
||||
func (this *VoucherBiz) cmbNotify(ctx context.Context, orderId uint64) error {
|
||||
func (this *VoucherBiz) cmbNotify(ctx context.Context, orderReq *bo.OrderBo) error {
|
||||
|
||||
order, err := this.OrderRepo.GetByID(ctx, orderId)
|
||||
order, err := this.OrderRepo.GetByID(ctx, orderReq.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
order.LastUseTime = orderReq.LastUseTime
|
||||
if orderNotify, err2 := this.Cmb.Notify(ctx, order); err != nil {
|
||||
|
||||
if !errPb.IsNeedRetryNotify(err2) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue