From 6b9e51ffedb59dbba55ec8e298e38c0c90f6678a Mon Sep 17 00:00:00 2001 From: ziming Date: Fri, 16 May 2025 16:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E9=99=A9=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/order.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/internal/biz/order.go b/internal/biz/order.go index d9de653..40e1a79 100644 --- a/internal/biz/order.go +++ b/internal/biz/order.go @@ -266,23 +266,9 @@ func (v *VoucherBiz) UpdateOrderStatus(ctx context.Context, orderId uint64, stat return fmt.Errorf("notice 未知券状态,orderId:%d,statuText:%s", orderId, status.GetText()) } -func (v *VoucherBiz) OrderQuery(ctx context.Context, orderNo string) (*bo.OrderBo, error) { - - order, err3 := v.OrderRepo.GetByOrderNo(ctx, orderNo) - if err3 != nil { - return nil, err3 - } - - if order == nil || order.ID == 0 { - return nil, fmt.Errorf("订单不存在:%s", orderNo) - } - - return order, nil -} - func (v *VoucherBiz) QueryOrder(ctx context.Context, orderNo string) (string, error) { - order, err3 := v.OrderQuery(ctx, orderNo) + order, err3 := v.OrderRepo.GetByOrderNo(ctx, orderNo) if err3 != nil { return "", err3 }