1
This commit is contained in:
@@ -213,7 +213,8 @@ type OrderSku struct {
|
|||||||
PromotionType int `json:"promotionType"` // todo 当前是用于记录京东的PromotionType(生成jxorder用),没有做转换
|
PromotionType int `json:"promotionType"` // todo 当前是用于记录京东的PromotionType(生成jxorder用),没有做转换
|
||||||
OrderCreatedAt time.Time `orm:"type(datetime);index" json:"-"` // 分区考虑
|
OrderCreatedAt time.Time `orm:"type(datetime);index" json:"-"` // 分区考虑
|
||||||
IsVendorAct int `json:"isVendorAct"`
|
IsVendorAct int `json:"isVendorAct"`
|
||||||
Upc string `json:"upc"` //upc码
|
Upc string `json:"upc"` //upc码
|
||||||
|
LocationCode string `json:"location_code"` // 商品货架码
|
||||||
}
|
}
|
||||||
|
|
||||||
// 同样商品在一个订单中可能重复出现(比如搞活动时,相同商品价格不一样,第一个有优惠)
|
// 同样商品在一个订单中可能重复出现(比如搞活动时,相同商品价格不一样,第一个有优惠)
|
||||||
|
|||||||
@@ -262,6 +262,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
|||||||
Weight: getSkuWeight(product),
|
Weight: getSkuWeight(product),
|
||||||
VendorPrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
|
VendorPrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
|
||||||
SalePrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
|
SalePrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
|
||||||
|
LocationCode: utils.Interface2String(product["location_code"]),
|
||||||
}
|
}
|
||||||
if product["upc"] != nil && product["upc"].(string) != "" {
|
if product["upc"] != nil && product["upc"].(string) != "" {
|
||||||
sku.Upc = product["upc"].(string)
|
sku.Upc = product["upc"].(string)
|
||||||
|
|||||||
Reference in New Issue
Block a user