/// <summary> /// 添加订单消费通知 /// </summary> /// <param name="tbl_Order"></param> /// <param name="tbl_OrderDetail"></param> /// <param name="business"></param> public void Add(Tbl_Order tbl_Order, Tbl_OrderDetail tbl_OrderDetail, Tbl_OTABusiness business) { var tbl_NoticeOrderConsumed = new Tbl_NoticeOrderConsumed { SequenceId = DateTime.Now.ToString("yyyyMMdd") + Guid.NewGuid().ToString("N"), ScenicId = tbl_Order.ScenicId, IdentityKey = business.IdentityKey, OrderNo = tbl_Order.OrderNo, OtaOrderId = tbl_Order.OTAOrderNo, OrderDetailNumber = tbl_OrderDetail.Number, OtaOrderDetailId = tbl_OrderDetail.OtaOrderDetailId, Count = tbl_OrderDetail.Quantity, IsTaken = false, RunCount = 0, CreateTime = DateTime.Now }; _noticeOrderConsumedRepository.Add(tbl_NoticeOrderConsumed); }
/// <summary> /// 添加订单消费通知 /// </summary> /// <param name="tbl_Order"></param> /// <param name="tbl_OrderDetail"></param> /// <param name="business"></param> public void Add(Tbl_Order tbl_Order, Tbl_OrderDetail tbl_OrderDetail, Tbl_OTABusiness business) { var tbl_NoticeOrderConsumed = new Tbl_NoticeOrderConsumed { ScenicId = tbl_Order.ScenicId, IdentityKey = business.IdentityKey, OrderNo = tbl_Order.OrderNo, OtaOrderId = tbl_Order.OTAOrderNo, OrderDetailNumber = tbl_OrderDetail.Number, Count = tbl_OrderDetail.Quantity, IsTaken = false, RunCount = 0, CreateTime = DateTime.Now }; _noticeOrderConsumedRepository.Add(tbl_NoticeOrderConsumed); }