- comment modified for elm order price info.
This commit is contained in:
@@ -181,7 +181,7 @@ func (c *OrderController) GetOrder(orderID string) (order *model.GoodsOrder, err
|
|||||||
SkuID: int(utils.Str2Int64WithDefault(utils.Interface2String(product["extendCode"]), 0)),
|
SkuID: int(utils.Str2Int64WithDefault(utils.Interface2String(product["extendCode"]), 0)),
|
||||||
VendorSkuID: utils.Int64ToStr(utils.MustInterface2Int64(product["skuId"])),
|
VendorSkuID: utils.Int64ToStr(utils.MustInterface2Int64(product["skuId"])),
|
||||||
SkuName: product["name"].(string),
|
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))),
|
Weight: int(math.Round(utils.Interface2FloatWithDefault(product["weight"], 0.0))),
|
||||||
}
|
}
|
||||||
order.Skus = append(order.Skus, sku)
|
order.Skus = append(order.Skus, sku)
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ type GoodsOrder struct {
|
|||||||
StoreName string `orm:"size(64)"`
|
StoreName string `orm:"size(64)"`
|
||||||
SubStoreID int `orm:"column(sub_store_id)"`
|
SubStoreID int `orm:"column(sub_store_id)"`
|
||||||
SubStoreName string `orm:"size(64)"`
|
SubStoreName string `orm:"size(64)"`
|
||||||
ShopPrice int64 // 单位为分
|
ShopPrice int64 // 单位为分 门店标价
|
||||||
SalePrice int64 // 单位为分
|
SalePrice int64 // 单位为分 售卖价
|
||||||
ActualPayPrice int64 // 单位为分
|
ActualPayPrice int64 // 单位为分 顾客实际支付
|
||||||
Weight int // 单位为克
|
Weight int // 单位为克
|
||||||
ConsigneeName string `orm:"size(32)"`
|
ConsigneeName string `orm:"size(32)"`
|
||||||
ConsigneeMobile string `orm:"size(32)"`
|
ConsigneeMobile string `orm:"size(32)"`
|
||||||
|
|||||||
Reference in New Issue
Block a user