예제 #1
0
 /// <summary>
 /// 记录订单,订单留空,会自动生成,牛B吧
 /// </summary>
 /// <param name="bookBuy"></param>
 /// <returns></returns>
 public int AddBookBuy(Res_BookBuy bookBuy)
 {
     if (string.IsNullOrEmpty(bookBuy.BookBuyCode))
     {
         bookBuy.BookBuyCode = GetMaxBookBuyCode(bookBuy.TenantId);
     }
     return(_dataAccess.AddEntity(bookBuy));
 }
예제 #2
0
 /// <summary>
 /// 更新订单
 /// </summary>
 /// <param name="bookBuy"></param>
 /// <returns></returns>
 public int UpdateBookBuy(Res_BookBuy bookBuy)
 {
     return(_dataAccess.UpdateEntity(bookBuy));
 }