diff --git a/internal/biz/query.go b/internal/biz/query.go index 4a84578..6792131 100644 --- a/internal/biz/query.go +++ b/internal/biz/query.go @@ -79,6 +79,12 @@ 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)