Browse Source

增加系统配置接口

kobe6258 4 months ago
parent
commit
d7c117ce29
2 changed files with 2 additions and 0 deletions
  1. 1 0
      controllers/order.go
  2. 1 0
      models/product_order.go

+ 1 - 0
controllers/order.go

@@ -230,6 +230,7 @@ func (this *OrderController) ProductOrderList() {
 				RefundAmount:  orderItem.RefundAmount,
 				RefundTradeId: orderItem.RefundTradeId,
 				PaymentWay:    PaymentWayMap[orderItem.PaymentWay],
+				PaymentAmount: orderItem.PaymentAmount,
 				Status:        ProductOrderStatus[orderItem.Status],
 				RefundStatus:  RefundStatusMap[orderItem.RefundStatus],
 				Remark:        orderItem.Remark,

+ 1 - 0
models/product_order.go

@@ -63,6 +63,7 @@ type ProductOrder struct {
 	TradeNO          string              `gorm:"column:trade_no;default:null;comment:'支付订单'" json:"trade_no"`
 	RefundTradeId    string              `column:"refund_trade_id;null;comment:'退款金额'" json:"refund_trade_id"`
 	RefundAmount     string              `gorm:"column:refund_amount;size:255;default:null;comment:'退款金额'" json:"refund_amount"`
+	PaymentAmount    string              `gorm:"column:payment_amount;size:255;default:null;comment:'支付金额'" json:"payment_amount"`
 	PaymentWay       PaymentWay          `gorm:"column:payment_way;enum('wechat','alipay');default:null;comment:'支付渠道'"`
 	PaymentTime      time.Time           `gorm:"column:payment_time;default:null;comment:'支付时间'" json:"payment_time"`
 	ExpiredTime      time.Time           `gorm:"column:expired_time;default:null;comment:'超时时间'" json:"expired_time"`