/// <summary> /// 修改门店商品库存 /// </summary> /// <param name="branchId"></param> /// <param name="products"></param> /// <param name="stock"></param> /// <param name="option"></param> public static void SetProductStock(long branchId, List <long> products, int stock, StockOptionType option) { foreach (var pro in products) { Service.SetProductStock(branchId, pro, stock, option); } }
public static void SetSkuStock(long branch, StockOptionType option, Dictionary <string, int> changes) { Service.SetStock(branch, changes, option); }
public static void SetProductStock(long product, int stock, StockOptionType option) { SetProductStock(new List <long> { product }, stock, option); }
/// <summary> /// 设置商品库存 /// </summary> /// <param name="shopBranchId"></param> /// <param name="products"></param> /// <param name="stock"></param> /// <param name="option"></param> public static void SetProductStock(List <long> products, int stock, StockOptionType option) { Service.SetProductStock(products, stock, option); }
public static void SetSkuStock(StockOptionType option, string skuId, long change) { Service.SetSkuStock(skuId, change, option); }
public static void SetSkuStock(StockOptionType option, Dictionary <string, long> changes) { Service.SetSkuStock(option, changes); }