query1 order
This commit is contained in:
parent
ee73cb8c50
commit
f348df3229
|
|
@ -79,12 +79,6 @@ func (this *VoucherBiz) QueryOrder(ctx context.Context, orderNo, isNotice string
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
if order.Status != status {
|
|
||||||
if err = this.UpdateOrderStatus(ctx, order.ID, status); err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
notifyStr := ""
|
notifyStr := ""
|
||||||
if isNotice == "YES" {
|
if isNotice == "YES" {
|
||||||
notify, err := this.Cmb.Notify(ctx, order)
|
notify, err := this.Cmb.Notify(ctx, order)
|
||||||
|
|
@ -94,6 +88,12 @@ func (this *VoucherBiz) QueryOrder(ctx context.Context, orderNo, isNotice string
|
||||||
notifyStr = fmt.Sprintf("通知招行成功:notify_id:%d", notify.ID)
|
notifyStr = fmt.Sprintf("通知招行成功:notify_id:%d", notify.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if order.Status != status {
|
||||||
|
if err = this.UpdateOrderStatus(ctx, order.ID, status); err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return this.ToTextDescription(order, status, notifyStr), nil
|
return this.ToTextDescription(order, status, notifyStr), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue