예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 public static void SetSkuStock(long branch, StockOptionType option, Dictionary <string, int> changes)
 {
     Service.SetStock(branch, changes, option);
 }
예제 #3
0
 public static void SetProductStock(long product, int stock, StockOptionType option)
 {
     SetProductStock(new List <long> {
         product
     }, stock, option);
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 public static void SetSkuStock(StockOptionType option, string skuId, long change)
 {
     Service.SetSkuStock(skuId, change, option);
 }
예제 #6
0
 public static void SetSkuStock(StockOptionType option, Dictionary <string, long> changes)
 {
     Service.SetSkuStock(option, changes);
 }