From 5599f0bb58105b58e3c59256c021d8fc1e315ab1 Mon Sep 17 00:00:00 2001 From: howell <2827207845@qq.com> Date: Thu, 24 Mar 2022 17:54:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A2=84=E5=AD=98=E6=AC=BE=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/api/mobile/pay/recookpay/create.go | 1 + internal/v2/logic/pay/recook/refund.go | 1 + internal/v2/model/jyy/jyy.go | 1 + 3 files changed, 3 insertions(+) diff --git a/internal/api/mobile/pay/recookpay/create.go b/internal/api/mobile/pay/recookpay/create.go index a7dea38..e4dca21 100755 --- a/internal/api/mobile/pay/recookpay/create.go +++ b/internal/api/mobile/pay/recookpay/create.go @@ -378,6 +378,7 @@ func payDeposit(tx *gorm.DB, orderInfo order.Information, wallet *jyy.UserWallet Amount: orderInfo.ActualTotalAmount.Neg(), Current: wallet.Deposit, Kind: 1, + OrderID: uint64(orderInfo.ID), }).Error; e != nil { return e } diff --git a/internal/v2/logic/pay/recook/refund.go b/internal/v2/logic/pay/recook/refund.go index ac48a86..f85b7eb 100644 --- a/internal/v2/logic/pay/recook/refund.go +++ b/internal/v2/logic/pay/recook/refund.go @@ -60,6 +60,7 @@ func RefundDeposit(tx *gorm.DB, asGoods *after.RecookAfterSalesGoodsModel) error Amount: asGoods.RefundAmount, Current: wallet.Deposit, Kind: 2, + OrderID: uint64(asGoods.OrderId), }).Error; err != nil { return err } diff --git a/internal/v2/model/jyy/jyy.go b/internal/v2/model/jyy/jyy.go index 7275310..5c25d5e 100644 --- a/internal/v2/model/jyy/jyy.go +++ b/internal/v2/model/jyy/jyy.go @@ -136,6 +136,7 @@ type UserWalletRecord struct { CreatedAt *time.Time `json:"created_at" gorm:"autoCreateTime"` Current decimal.Decimal `json:"current"` Kind int `json:"kind"` + OrderID uint64 `json:"order_id"` } func (o UserWalletRecord) TableName() string {