- comment modified for elm order price info.

This commit is contained in:
gazebo
2018-07-30 14:48:16 +08:00
parent f4237b1541
commit 0464042d49
2 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -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)"`