This commit is contained in:
苏尹岚
2020-11-20 17:12:56 +08:00
parent b519864234
commit 351b69efde

View File

@@ -499,16 +499,22 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
// TransportID: jdshopapi.TransportID, // TransportID: jdshopapi.TransportID,
WareStatus: 8, //上架待审核 WareStatus: 8, //上架待审核
OuterID: utils.Int2Str(storeSku.NameID), OuterID: utils.Int2Str(storeSku.NameID),
VenderID: jdshopapi.VenderID, // VenderID: jdshopapi.VenderID,
Length: 100, Length: 100,
Width: 100, Width: 100,
Height: 100, Height: 100,
Weight: 0.5, Weight: 0.5,
JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice),
// MarketPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), // MarketPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice),
// PromiseID: jdshopapi.JdsPromiseID, // PromiseID: jdshopapi.JdsPromiseID,
} }
if storeSku.VendorOrgCode == "1" {
createSkuParamWare.VenderID = jdshopapi.VenderID
} else {
createSkuParamWare.VenderID = jdshopapi.VendorID2
}
if storeSku.VendorVendorCatID != jdshopapi.JdsOtherMeatCatID { if storeSku.VendorVendorCatID != jdshopapi.JdsOtherMeatCatID {
createSkuParamWare.PromiseID = jdshopapi.JdsPromiseID createSkuParamWare.PromiseID = jdshopapi.JdsPromiseID
} }