刷新门店库存修改
This commit is contained in:
@@ -1117,7 +1117,9 @@ func syncJdsStoreStock(ctx *jxcontext.Context, db *dao.DaoDB, storeSkus []*model
|
|||||||
}
|
}
|
||||||
storeSku2, _ := dao.GetStoresSkusInfo(db, []int{storeMap.StoreID}, []int{storeSku.SkuID})
|
storeSku2, _ := dao.GetStoresSkusInfo(db, []int{storeMap.StoreID}, []int{storeSku.SkuID})
|
||||||
if storeSku.JdsID != 0 && len(storeSku2) > 0 {
|
if storeSku.JdsID != 0 && len(storeSku2) > 0 {
|
||||||
err = api.JdShopAPI.UpdateSkuSiteStock(storeSku.JdsID, stock, utils.Str2Int(storeMap.VendorStoreID))
|
if storeSku.Status != storeSku2[0].Status {
|
||||||
|
err = api.JdShopAPI.UpdateSkuSiteStock(storeSku.JdsID, stock, utils.Str2Int(storeMap.VendorStoreID))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return retVal, err
|
return retVal, err
|
||||||
}, storeSkus)
|
}, storeSkus)
|
||||||
|
|||||||
Reference in New Issue
Block a user