From 54854f05b5feb11b22f3b3ddbfe7a999d2624e1a Mon Sep 17 00:00:00 2001 From: renyutian Date: Sun, 28 Apr 2019 16:35:14 +0800 Subject: [PATCH] down_flag --- business/model/order_financial.go | 2 +- business/partner/purchase/ebai/financial.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/order_financial.go b/business/model/order_financial.go index d92c493a4..28ab408c9 100644 --- a/business/model/order_financial.go +++ b/business/model/order_financial.go @@ -36,7 +36,7 @@ type OrderFinancial struct { JxSubsidyMoney int64 `json:"jxSubsidyMoney"` // 京西总补贴 JxSkuSubsidyMoney int64 `json:"jxSkuSubsidyMoney"` // 京西补贴给单条sku的金额 JxShopMoney int64 `json:"jxShopMoney"` // 店铺应结金额-京西结算给店铺的金额M - DownFlag int64 `json:"downFlag"` // 0--正常单, 1--降级单 + DownFlag int8 `json:"downFlag"` // 0--正常单, 1--降级单 Skus []*OrderSkuFinancial `orm:"-" json:"skus"` // 正向订单购买商品列表 Discounts []*OrderDiscountFinancial `orm:"-" json:"discounts"` // 正向订单享受优惠列表 } diff --git a/business/partner/purchase/ebai/financial.go b/business/partner/purchase/ebai/financial.go index 015b4c691..12a986ddc 100644 --- a/business/partner/purchase/ebai/financial.go +++ b/business/partner/purchase/ebai/financial.go @@ -186,7 +186,7 @@ func (p *PurchaseHandler) OrderDetail2Financial(result map[string]interface{}) ( // orderFinancial.DeliveryConfirmTime = getTimeFromInterface(order1["finished_time"]) orderFinancial.TotalDiscountMoney = utils.MustInterface2Int64(order1["discount_fee"]) orderFinancial.ReceivableFreight = utils.MustInterface2Int64(order1["send_fee"]) - orderFinancial.DownFlag = utils.MustInterface2Int64(order1["down_flag"]) + orderFinancial.DownFlag = int8(utils.MustInterface2Int64(order1["down_flag"])) if int(getInt64FromInterface(order1["delivery_party"])) == ebaiapi.SendImmediatelySelf { orderFinancial.SelfDeliveryDiscountMoney = orderFinancial.ReceivableFreight