From 0464042d49cda7d2af61a49f54ac666e7c3fe483 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 30 Jul 2018 14:48:16 +0800 Subject: [PATCH] - comment modified for elm order price info. --- business/controller/elm/order.go | 2 +- business/model/order.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/business/controller/elm/order.go b/business/controller/elm/order.go index 96795d2a8..a69d3a4a0 100644 --- a/business/controller/elm/order.go +++ b/business/controller/elm/order.go @@ -181,7 +181,7 @@ func (c *OrderController) GetOrder(orderID string) (order *model.GoodsOrder, err SkuID: int(utils.Str2Int64WithDefault(utils.Interface2String(product["extendCode"]), 0)), VendorSkuID: utils.Int64ToStr(utils.MustInterface2Int64(product["skuId"])), SkuName: product["name"].(string), - SalePrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])), // todo 这个其实不是用户实付价,但之前用的userPrice取出来是空,暂时先用到 + SalePrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])), Weight: int(math.Round(utils.Interface2FloatWithDefault(product["weight"], 0.0))), } order.Skus = append(order.Skus, sku) diff --git a/business/model/order.go b/business/model/order.go index 434d3fb31..3b2d8116a 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -17,9 +17,9 @@ type GoodsOrder struct { StoreName string `orm:"size(64)"` SubStoreID int `orm:"column(sub_store_id)"` SubStoreName string `orm:"size(64)"` - ShopPrice int64 // 单位为分 - SalePrice int64 // 单位为分 - ActualPayPrice int64 // 单位为分 + ShopPrice int64 // 单位为分 门店标价 + SalePrice int64 // 单位为分 售卖价 + ActualPayPrice int64 // 单位为分 顾客实际支付 Weight int // 单位为克 ConsigneeName string `orm:"size(32)"` ConsigneeMobile string `orm:"size(32)"`