query1 order

This commit is contained in:
ziming 2025-10-20 14:41:17 +08:00
parent ee73cb8c50
commit f348df3229
1 changed files with 6 additions and 6 deletions

View File

@ -79,12 +79,6 @@ func (this *VoucherBiz) QueryOrder(ctx context.Context, orderNo, isNotice string
return "", err
}
if order.Status != status {
if err = this.UpdateOrderStatus(ctx, order.ID, status); err != nil {
return "", err
}
}
notifyStr := ""
if isNotice == "YES" {
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)
}
if order.Status != status {
if err = this.UpdateOrderStatus(ctx, order.ID, status); err != nil {
return "", err
}
}
return this.ToTextDescription(order, status, notifyStr), nil
}