From ee73cb8c5083982bac0840de7c2dcd8eca37c610 Mon Sep 17 00:00:00 2001 From: ziming Date: Mon, 20 Oct 2025 13:38:23 +0800 Subject: [PATCH] query1 order --- internal/biz/query.go | 6 ++++++ 1 file changed, 6 insertions(+) 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)