From 531de3c76045654ad729b16599c6055f0bbd065f Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 27 Apr 2026 09:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E9=80=80=E5=9B=9E=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E8=BF=98=E6=98=AF=E5=8F=AF=E4=BB=A5=E7=BB=A7=E7=BB=AD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/store/postgres/refund_store.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/store/postgres/refund_store.go b/internal/store/postgres/refund_store.go index 0f67545..d38354f 100644 --- a/internal/store/postgres/refund_store.go +++ b/internal/store/postgres/refund_store.go @@ -109,14 +109,13 @@ func (s *RefundStore) List(ctx context.Context, opts *store.QueryOptions, filter return requests, total, nil } -// FindActiveByOrderID 查找订单关联的活跃退款申请(状态为待审批、已通过、已退回) +// FindActiveByOrderID 查找订单关联的活跃退款申请(状态为待审批、已通过) func (s *RefundStore) FindActiveByOrderID(ctx context.Context, orderID uint) (*model.RefundRequest, error) { var req model.RefundRequest err := s.db.WithContext(ctx). Where("order_id = ? AND status IN ?", orderID, []int{ model.RefundStatusPending, model.RefundStatusApproved, - model.RefundStatusReturned, }). First(&req).Error if err != nil {