京东价和市场价先平了?
This commit is contained in:
@@ -319,7 +319,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
Width: 100,
|
||||
Height: 100,
|
||||
Weight: 0.5,
|
||||
// JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice),
|
||||
JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice),
|
||||
// MarketPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice),
|
||||
}
|
||||
|
||||
@@ -406,6 +406,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
features = append(features, feature)
|
||||
createSkuParamWare.Features = features
|
||||
//组合sku
|
||||
var vendorPrice int64 = 0
|
||||
for _, v := range storeSku.StoreSkuSyncInfoJds {
|
||||
var (
|
||||
ggValueID int64 //规格的属性id
|
||||
@@ -434,10 +435,14 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
||||
Type2: "com.jd.pop.ware.ic.api.domain.Sku",
|
||||
OuterID: utils.Int2Str(v.SkuID),
|
||||
}
|
||||
|
||||
sku.SaleAttrs = attrsPropSku
|
||||
createSkuParamSkus = append(createSkuParamSkus, sku)
|
||||
|
||||
if v.VendorPrice > vendorPrice {
|
||||
vendorPrice = v.VendorPrice
|
||||
}
|
||||
}
|
||||
createSkuParamWare.MarketPrice = jxutils.IntPrice2Standard(vendorPrice)
|
||||
return createSkuParamWare, createSkuParamSkus, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user