diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index fca432b97..f28e3e461 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -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 }