diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index a6a7c5a71..6738705c4 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -499,16 +499,22 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j // TransportID: jdshopapi.TransportID, WareStatus: 8, //上架待审核 OuterID: utils.Int2Str(storeSku.NameID), - VenderID: jdshopapi.VenderID, - Length: 100, - Width: 100, - Height: 100, - Weight: 0.5, - JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), + // VenderID: jdshopapi.VenderID, + Length: 100, + Width: 100, + Height: 100, + Weight: 0.5, + JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), // MarketPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), // PromiseID: jdshopapi.JdsPromiseID, } + if storeSku.VendorOrgCode == "1" { + createSkuParamWare.VenderID = jdshopapi.VenderID + } else { + createSkuParamWare.VenderID = jdshopapi.VendorID2 + } + if storeSku.VendorVendorCatID != jdshopapi.JdsOtherMeatCatID { createSkuParamWare.PromiseID = jdshopapi.JdsPromiseID }