/// <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)); }
/// <summary> /// 更新订单 /// </summary> /// <param name="bookBuy"></param> /// <returns></returns> public int UpdateBookBuy(Res_BookBuy bookBuy) { return(_dataAccess.UpdateEntity(bookBuy)); }