Esempio n. 1
0
 public InterceptInfo(SuplierInfo supplier, string spuId, TopTrade trade, Statistic statistic)
 {
     this.supplier = supplier;
     this.spuId = spuId;
     this.trade = trade;
     this.statistic = statistic;
 }
Esempio n. 2
0
 /// <summary>
 /// 更新供应商信息
 /// </summary>
 /// <param name="productItems"></param>
 /// <param name="supplier"></param>
 public void OnSupplierInfoUpdate(LiteCollection <ProductItem> productItems, SuplierInfo supplier)
 {
     this.利润         = supplier.profitMax;
     this.进价         = supplier.profitData[0].price;
     this.一口价        = supplier.profitData[0].price + supplier.profitMax;
     this.SupplierId = supplier.profitData[0].id;
     this.UpdateAt   = DateTime.Now;
     productItems.Update(this);
 }