You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1146 lines
31 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSV.Utils;
using NPoco;
using POSV.Entity;
using Newtonsoft.Json.Converters;
using POSV.Card;
using System.Collections.ObjectModel;
namespace POSV.ShoppingCart
{
/// <summary>
/// 订单对象,包含整个订单的全部信息
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_order")]
[PrimaryKey(new string[] { "id" }, AutoIncrement = false)]
public class OrderObject : BaseEntity
{
public OrderObject()
{
this.ErrorMessage = "";
}
[Ignore]
public bool isUpLoadTicket { get; set; } = false;
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 订单内部标识
/// </summary>
[JsonProperty(PropertyName = "objectId")]
[Column("objectId")]
public string ObjectId { get; set; }
/// <summary>
/// 单据编号
/// </summary>
[JsonProperty(PropertyName = "no")]
[Column("tradeNo")]
public string TradeNo { get; set; } = string.Empty;
/// <summary>
/// 订单序号
/// </summary>
[JsonProperty(PropertyName = "orderNo")]
[Column("orderNo")]
public string OrderNo { get; set; }
/// <summary>
/// 门店ID
/// </summary>
[JsonProperty(PropertyName = "storeId")]
[Column("storeId")]
public string StoreId { get; set; }
/// <summary>
/// 门店编号
/// </summary>
[JsonProperty(PropertyName = "storeNo")]
[Column("storeNo")]
public string StoreNo { get; set; }
/// <summary>
/// 门店名称
/// </summary>
[JsonProperty(PropertyName = "storeName")]
[Column("storeName")]
public string StoreName { get; set; }
/// <summary>
/// 操作员工号
/// </summary>
[JsonProperty(PropertyName = "workNo")]
[Column("workerNo")]
public string WorkerNo { get; set; }
/// <summary>
/// 操作员名称
/// </summary>
[JsonProperty(PropertyName = "workName")]
[Column("workerName")]
public string WorkerName { get; set; }
/// <summary>
/// POS
/// </summary>
[JsonProperty(PropertyName = "posNo")]
[Column("posNo")]
public string PosNo { get; set; }
/// <summary>
/// 收银设备名称
/// </summary>
[JsonProperty(PropertyName = "deviceName")]
[Column("deviceName")]
public string DeviceName { get; set; }
/// <summary>
/// 收银设备Mac地址
/// </summary>
[JsonProperty(PropertyName = "deviceMac")]
[Column("macAddress")]
public string MacAddress { get; set; }
/// <summary>
/// 收银设备IP地址
/// </summary>
[JsonProperty(PropertyName = "deviceIp")]
[Column("ipAddress")]
public string IpAddress { get; set; }
/// <summary>
/// 营业员编码
/// </summary>
[JsonProperty(PropertyName = "salesCode")]
[Column("salesCode")]
public string SalesCode { get; set; } = string.Empty;
/// <summary>
/// 营业员名称
/// </summary>
[JsonProperty(PropertyName = "salesName")]
[Column("salesName")]
public string SalesName { get; set; } = string.Empty;
/// <summary>
/// 餐桌号
/// </summary>
[JsonProperty(PropertyName = "tableNo")]
[Column("tableNo")]
public string TableNo { get; set; } = string.Empty;
/// <summary>
/// 餐桌名称
/// </summary>
[JsonProperty(PropertyName = "tableName")]
[Column("tableName")]
public string TableName { get; set; } = string.Empty;
/// <summary>
/// 人数
/// </summary>
[JsonProperty(PropertyName = "people")]
[Column("people")]
public int People { get; set; } = 1;
/// <summary>
/// 班次
/// </summary>
[JsonProperty(PropertyName = "shiftNo")]
[Column("shiftNo")]
public string ShiftNo { get; set; }
/// <summary>
/// 班次名称
/// </summary>
[JsonProperty(PropertyName = "shiftName")]
[Column("shiftName")]
public string ShiftName { get; set; }
/// <summary>
/// 销售订单创建时间
/// </summary>
[JsonProperty(PropertyName = "saleDate")]
[Column("saleDate")]
public string SaleDate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
/// <summary>
/// 订单完成时间(格式:yyyy-MM-dd HH:mm:ss)
/// </summary>
[JsonProperty(PropertyName = "finishDate")]
[Column("finishDate")]
public string FinishDate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
///// <summary>
///// 商品Map明细
///// </summary>
//[JsonProperty(PropertyName = "maps")]
//[Ignore]
//public ObservableDictionary<string , OrderItem> Maps { get; set; }
[JsonProperty(PropertyName = "maps")]
[Ignore]
public ObservableCollection<OrderItem> Maps { get; set; }
private int _orderCount = 0;
/// <summary>
/// 购物车中总行数
/// </summary>
[JsonProperty(PropertyName = "orderCount")]
[Column("orderCount")]
public int OrderCount
{
get
{
this._orderCount = (this.Maps == null ? 0 : this.Maps.Count);
return _orderCount;
}
set
{
this._orderCount = value;
}
}
private List<OrderItem> _items;
/// <summary>
/// 商品List集合
/// </summary>
[JsonProperty(PropertyName = "items")]
[Ignore]
public List<OrderItem> Items
{
get
{
this._items = (this.Maps == null ? this._items : this.Maps.ToList());
return this._items;
}
set
{
this._items = value;
}
}
[Ignore]
public decimal ItemsSaleTax
{
get
{
this._items = (this.Maps == null ? this._items : this.Maps.ToList());
return _items.Sum(f=>f.SaleTaxMoney);
//_items.ForEach(f =>
//{
// _tax += f.Amount * (f.ProductExt.SaleTax / 100);
//});
//return _tax;
}
}
/// <summary>
/// 支付明细
/// </summary>
[JsonProperty(PropertyName = "pays")]
[Ignore]
public List<PayItem> Pays { get; set; }
private int _payCount = 0;
/// <summary>
/// 购物车中总行数
/// </summary>
[JsonProperty(PropertyName = "payCount")]
[Column("payCount")]
public int PayCount
{
get
{
this._payCount = (this.Pays == null ? 0 : Pays.Count);
return this._payCount;
}
set
{
this._payCount = value;
}
}
/// <summary>
/// 整单享受的优惠列表
/// </summary>
[JsonProperty(PropertyName = "promotions")]
[Ignore]
public List<PromotionOrder> Promotions { get; set; }
private int _promotionCount = 0;
/// <summary>
/// 整单享受的数量
/// </summary>
[JsonProperty(PropertyName = "promotionCount")]
[Column("promotionCount")]
public int PromotionCount
{
get
{
this._promotionCount = (this.Promotions == null ? 0 : Promotions.Count);
return this._promotionCount;
}
set
{
this._promotionCount = value;
}
}
private decimal _totalQuantity = 0;
/// <summary>
/// 整单的数量合计
/// </summary>
[JsonProperty(PropertyName = "totalQuantity")]
[Column("totalQuantity")]
public decimal TotalQuantity
{
get
{
this._totalQuantity = (this.Items == null ? 0 : this.Items.FindAll(x => x.RowState != OrderRowState.).Sum(m => m.Quantity));
return this._totalQuantity;
}
set
{
this._totalQuantity = value;
}
}
private decimal _amount = 0;
/// <summary>
/// 消费金额,不包含套餐明细
/// </summary>
[JsonProperty(PropertyName = "amount")]
[Column("amount")]
public decimal Amount
{
get
{
//金额合计不包含套餐明细
if (this.Items == null)
{
this._amount = 0;
}
else
{
//不包含套餐明细的金额
var _total = this.Items.FindAll(x => x.RowState != OrderRowState.).Sum(m => m.TotalAmonut);
this._amount = _total;
}
return OrderUtils.ToRound(this._amount);
}
set
{
this._amount = value;
}
}
private decimal _productAmount = 0;
/// <summary>
/// 消费金额,不包含套餐明细
/// </summary>
[Ignore]
public decimal ProductAmount
{
get
{
//金额合计不包含套餐明细
if (this.Items == null)
{
this._productAmount = 0;
}
else
{
//不包含套餐明细的金额
var _total = this.Items.FindAll(x => x.RowState != OrderRowState.).Sum(m => m.Amount);
this._productAmount = _total;
}
return OrderUtils.ToRound(this._productAmount);
}
set
{
this._productAmount = value;
}
}
private decimal _discountAmount = 0;
/// <summary>
/// 优惠金额,不包含套餐明细
/// </summary>
[JsonProperty(PropertyName = "discountAmount")]
[Column("discountAmount")]
public decimal DiscountAmount
{
get
{
decimal mainDiscount = (this.Items == null ? 0 : this.Items.FindAll(x => x.RowState != OrderRowState.).Sum(m => m.TotalDiscountAmount));
//decimal detailFlavorDiscount = this._discountAmount = (this.Items == null ? 0 : this.Items.FindAll(x => x.RowState == OrderRowState.套餐明).Sum(m => m.FlavorDiscountAmount));
//this._discountAmount = mainDiscount + detailFlavorDiscount;
//return OrderUtils.ToRound(this._discountAmount);
this._discountAmount = mainDiscount;
return OrderUtils.ToRound(this._discountAmount);
}
set
{
this._discountAmount = value;
}
}
private decimal _productDiscountAmount = 0;
/// <summary>
/// 产品优惠金额,不包含套餐明细
/// </summary>
[Ignore]
public decimal ProductDiscountAmount
{
get
{
decimal mainDiscount = (this.Items == null ? 0 : this.Items.FindAll(x => x.RowState != OrderRowState.).Sum(m => m.DiscountAmount));
this._productDiscountAmount = mainDiscount;
return OrderUtils.ToRound(this._productDiscountAmount);
}
set
{
this._productDiscountAmount = value;
}
}
/// <summary>
/// 总优惠率,包含商品+加价
/// </summary>
[JsonProperty(PropertyName = "discountRate")]
[Column("discountRate")]
public decimal DiscountRate
{
get
{
if (this.Amount == 0)
{
return 0;
}
return OrderUtils.ToRound(this.DiscountAmount / this.Amount);
}
}
private decimal _receivableAmount = 0;
/// <summary>
/// 应收金额 = 消费金额 - 优惠金额
/// </summary>
[JsonProperty(PropertyName = "receivable")]
[Column("receivableAmount")]
public decimal ReceivableAmount
{
get
{
this._receivableAmount = this.Amount - this.DiscountAmount;
return this._receivableAmount;
}
set
{
this._receivableAmount = value;
}
}
private decimal _productReceivableAmount = 0;
/// <summary>
/// 应收金额 = 消费金额 - 优惠金额
/// </summary>
[Ignore]
public decimal ProductReceivableAmount
{
get
{
this._productReceivableAmount = this.ProductAmount - this.ProductDiscountAmount;
return this._productReceivableAmount;
}
set
{
this._productReceivableAmount = value;
}
}
private decimal _paidAmount = 0;
/// <summary>
/// 实收金额 = 应收金额 - 抹零金额
/// </summary>
[JsonProperty(PropertyName = "paid")]
[Column("paidAmount")]
public decimal PaidAmount
{
get
{
//this._paidAmount = (this.Pays == null ? 0 : this.Pays.Sum(m => m.PaidAmount));
this._paidAmount = this._receivableAmount - this.MalingAmount ;
return this._paidAmount;
}
set
{
this._paidAmount = value;
}
}
private decimal _receivedAmount = 0;
/// <summary>
/// 已收金额,各种支付明细的实收金额合计
/// </summary>
[JsonProperty(PropertyName = "received")]
[Column("receivedAmount")]
public decimal ReceivedAmount
{
get
{
this._receivedAmount = (this.Pays == null ? 0 : this.Pays.Sum(m => m.PaidAmount));
//this._receivedAmount = this._receivableAmount - this.MalingAmount;
return this._receivedAmount;
}
set
{
this._receivedAmount = value;
}
}
/// <summary>
/// 抹零金额
/// </summary>
[JsonProperty(PropertyName = "maling")]
[Column("malingAmount")]
public decimal MalingAmount { get; set; }
/// <summary>
/// 找零金额
/// </summary>
[JsonProperty(PropertyName = "change")]
[Column("changeAmount")]
public decimal ChangeAmount { get; set; }
/// <summary>
/// 溢收金额
/// </summary>
[Ignore]
public decimal OverAmount { get; set; }
/// <summary>
/// 开票金额
/// </summary>
[JsonProperty(PropertyName = "invoiced")]
[Column("invoicedAmount")]
public decimal InvoicedAmount { get; set; }
/// <summary>
/// 订单同步状态 0-新增,1-已同步,2-问题单
/// </summary>
[JsonProperty(PropertyName = "sync")]
[Column("syncStatus")]
public int SyncStatus { get; set; } = 0;
/// <summary>
/// 上传错误次数,错误次数越多,优先级越低
/// </summary>
[JsonProperty(PropertyName = "uploadErrors")]
[Column("uploadErrors")]
public int UploadErrors { get; set; }
/// <summary>
/// 订单状态
/// </summary>
[JsonProperty(PropertyName = "status")]
[Column("orderStatus")]
public OrderStatus OrderStatus { get; set; }
/// <summary>
/// 订单类型
/// </summary>
[JsonProperty(PropertyName = "type")]
[Column("orderType")]
public OrderType OrderType { get; set; } = OrderType.;
/// <summary>
/// 支付状态
/// </summary>
[JsonProperty(PropertyName = "paymentStatus")]
[Column("paymentStatus")]
public OrderPaymentStatus PaymentStatus { get; set; }
/// <summary>
/// 打印状态
/// </summary>
[JsonProperty(PropertyName = "printStatus")]
[Column("printStatus")]
public OrderPrintStatus PrintStatus { get; set; }
/// <summary>
/// 打印次数
/// </summary>
[JsonProperty(PropertyName = "printTimes")]
[Column("printTimes")]
public int PrintTimes { get; set; }
/// <summary>
/// 原单号
/// </summary>
[JsonProperty(PropertyName = "noOrg")]
[Column("orgTradeNo")]
public string OrgTradeNo { get; set; } = string.Empty;
/// <summary>
/// 退单原因
/// </summary>
[JsonProperty(PropertyName = "backCause")]
[Column("refundCause")]
public string RefundCause { get; set; }
private int _isMember = 0;
/// <summary>
/// 是否使用会员卡(0否1是)
/// </summary>
[JsonProperty(PropertyName = "isMember")]
[Column("isMember")]
public int IsMember
{
get
{
if (isUpLoadTicket)
{
return this._isMember;
}
else
{
return this.Member == null ? 0 : 1;
}
}
set
{
this._isMember = value;
}
}
private string _memberNo = string.Empty;
/// <summary>
/// 会员卡号
/// </summary>
[JsonProperty(PropertyName = "memberNo")]
[Column("memberNo")]
public string MemberNo
{
get
{
if (!string.IsNullOrEmpty(_memberNo))
{
return _memberNo;
}
else
{
return (this.Member != null && this.Member.CurrentCard != null) ? this.Member.CurrentCard.CardNo : string.Empty;
}
}
set
{
_memberNo = value;
}
}
private string _memberMobileNo = string.Empty;
/// <summary>
/// 会员手机号
/// </summary>
[JsonProperty(PropertyName = "memberMobileNo")]
[Column("memberMobileNo")]
public string MemberMobileNo
{
get
{
if (!string.IsNullOrEmpty(_memberMobileNo))
{
return _memberMobileNo;
}
else
{
return (this.Member != null) ? this.Member.Mobile : string.Empty;
}
}
set
{
this._memberMobileNo = value;
}
}
private string _cardFaceNo = string.Empty;
/// <summary>
/// 会员卡面号
/// </summary>
[JsonProperty(PropertyName = "cardFaceNo")]
[Column("cardFaceNo")]
public string CardFaceNo
{
get
{
if (!string.IsNullOrEmpty(_cardFaceNo))
{
return _cardFaceNo;
}
else
{
return (this.Member != null && this.Member.CurrentCard != null) ? this.Member.CurrentCard.FaceNo : string.Empty;
}
}
set
{
this._cardFaceNo = value;
}
}
/// <summary>
/// 消费前积分
/// </summary>
[JsonProperty(PropertyName = "memberPreJifen")]
[Column("prePoint")]
public decimal PrePoint { get; set; }
/// <summary>
/// 本单积分
/// </summary>
[JsonProperty(PropertyName = "memberJifen")]
[Column("addPoint")]
public decimal AddPoint { get; set; }
/// <summary>
/// 消费后积分
/// </summary>
[JsonProperty(PropertyName = "memberAftJifen")]
[Column("aftPoint")]
public decimal AftPoint { get; set; } = 0.00M;
/// <summary>
/// 已退积分,原单使用
/// </summary>
[JsonProperty(PropertyName = "refundPoint")]
[Column("refundPoint")]
public decimal RefundPoint { get; set; }
/// <summary>
/// 可退积分,计算过程使用
/// </summary>
[JsonProperty(PropertyName = "usableRefundPoint")]
[Ignore]
public decimal UsableRefundPoint
{
get
{
return this.AddPoint - this.RefundPoint;
}
}
private decimal _estimatedCost = 0;
/// <summary>
/// 预估成本
/// </summary>
[JsonProperty(PropertyName = "estimatedCost")]
[Column("estimatedCost")]
public decimal EstimatedCost
{
get
{
this._estimatedCost = 0.00M;
if (Items != null && Items.Count > 0)
{
foreach (OrderItem item in Items)
{
if (item.RowState == OrderRowState.)
{
this._estimatedCost += 0;
}
else
{
this._estimatedCost += OrderUtils.ToRound(item.EstimatedCost);
}
}
}
return this._estimatedCost;
}
set
{
this._estimatedCost = value;
}
}
private decimal _estimatedProfitAmount = 0;
/// <summary>
/// 预估毛利金额
/// </summary>
[JsonProperty(PropertyName = "estimatedProfitAmount")]
[Column("estimatedProfitAmount")]
public decimal EstimatedProfitAmount
{
get
{
this._estimatedProfitAmount = 0.00M;
if (Items != null && Items.Count > 0)
{
foreach (OrderItem item in Items)
{
if (item.RowState == OrderRowState.)
{
this._estimatedProfitAmount += 0;
}
else
{
this._estimatedProfitAmount += OrderUtils.ToRound(item.EstimatedProfitAmount);
}
}
}
return this._estimatedProfitAmount;
}
set
{
this._estimatedProfitAmount = value;
}
}
private decimal _estimatedProfitMargin = 0;
/// <summary>
/// 预估毛利率
/// </summary>
[JsonProperty(PropertyName = "estimatedProfitMargin")]
[Column("estimatedProfitMargin")]
public decimal EstimatedProfitMargin
{
get
{
this._estimatedProfitMargin = 0.00M;
if (this.ReceivableAmount != 0)
{
this._estimatedProfitMargin = this.EstimatedProfitAmount / this.ReceivableAmount;
}
else
{
this._estimatedProfitMargin = 0;
}
return this._estimatedProfitMargin;
}
set
{
this._estimatedProfitMargin = value;
}
}
/// <summary>
/// 实际成本
/// </summary>
[JsonProperty(PropertyName = "totalCost")]
[Column("totalCost")]
public decimal TotalCost { get; set; } = 0.00M;
/// <summary>
/// 实际毛利金额
/// </summary>
[JsonProperty(PropertyName = "profitAmount")]
[Column("profitAmount")]
public decimal ProfitAmount { get; set; } = 0.00M;
/// <summary>
/// 实际毛利率
/// </summary>
[JsonProperty(PropertyName = "profitMargin")]
[Column("profitMargin")]
public decimal ProfitMargin { get; set; } = 0.00M;
/// <summary>
/// 会员信息
/// </summary>
[JsonProperty(PropertyName = "member")]
[Ignore]
public MemberInfoQueryResponse Member { get; set; } = null;
/// <summary>
/// 享迷卡会员信息
/// </summary>
[Ignore]
public MemberInfoQueryResponse XmkMember { get; set; } = null;
/// <summary>
/// 会员卡支付清单
/// </summary>
[JsonProperty(PropertyName = "mpay")]
[Ignore]
public CardTradePayResponse CardPayResult { get; set; }
/// <summary>
/// 数据上传状态
/// </summary>
[JsonProperty(PropertyName = "uploadStatus")]
[Column("uploadStatus")]
public int UploadStatus { get; set; } = -1;
/// <summary>
/// 数据上传消息说明
/// </summary>
[JsonProperty(PropertyName = "uploadMessage")]
[Column("uploadMessage")]
public string UploadMessage { get; set; } = string.Empty;
/// <summary>
/// 数据上传错误码
/// </summary>
[JsonProperty(PropertyName = "uploadErrCode")]
[Column("uploadErrCode")]
public string UploadErrCode { get; set; } = string.Empty;
/// <summary>
/// 数据上传错误说明
/// </summary>
[JsonProperty(PropertyName = "uploadErrMessage")]
[Column("uploadErrMessage")]
public string UploadErrMessage { get; set; } = string.Empty;
/// <summary>
/// 数据上传服务端ID
/// </summary>
[JsonProperty(PropertyName = "ticketId")]
[Column("ticketId")]
public string TicketId { get; set; } = string.Empty;
/// <summary>
/// 数据上传成功的时间
/// </summary>
[JsonProperty(PropertyName = "uploadTime")]
[Column("uploadTime")]
public string UploadTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
/// <summary>
/// 星期
/// </summary>
[JsonProperty(PropertyName = "weeker")]
[Column("weeker")]
public string Weeker
{
get; set;
}
/// <summary>
/// 天气
/// </summary>
[JsonProperty(PropertyName = "weather")]
[Column("weather")]
public string Weather
{
get; set;
}
/// <summary>
/// 订单备注
/// </summary>
[JsonProperty(PropertyName = "ext1")]
[Column("ext1")]
public string Ext1 { get; set; }
/// <summary>
/// POS机名
/// </summary>
[JsonProperty(PropertyName = "ext2")]
[Column("ext2")]
public string Ext2 { get; set; }
/// <summary>
/// 厨打方案名称
/// </summary>
[JsonProperty(PropertyName = "ext3")]
[Column("ext3")]
public string Ext3 { get; set; }
#region 异步支付通知信息
/// <summary>
/// 异步通知状态
/// </summary>
[JsonProperty(PropertyName = "PayState")]
[Ignore]
public string PayState { get; set; }
/// <summary>
/// 支付查询剩余次数
/// </summary>
[JsonProperty(PropertyName = "PayQueryQuantity")]
[Ignore]
public int PayQueryQuantity { get; set; }
/// <summary>
/// 支付错误信息
/// </summary>
[JsonProperty(PropertyName = "ErrorMessage")]
[Ignore]
public string ErrorMessage { get; set; }
#endregion
/// <summary>
/// 单据类型;0结账单1退单
/// </summary>
[Ignore]
public int PrintType
{
get; set;
}
/// <summary>
/// 重打标识
/// </summary>
[Ignore]
public bool RPrint
{
get; set;
}
/// <summary>
/// 外送单
/// </summary>
[JsonProperty(PropertyName = "delivery")]
[Ignore]
public OrderDelivery Delivery { get; set; } = null;
[Ignore]
public bool IsUserMemberPrice { get; set; } = false;
[Ignore]
public DateTime PayCountDown { get; set; }
[Ignore]
public string ReserveTime { get; set; }
/// <summary>
/// erp上传标识
/// </summary>
[Ignore]
[Column("IsUploadERP")]
public int IsUploadERP
{
get; set;
}
#region 小程序点餐辅助字段
[Ignore]
/// <summary>
/// 餐盒费
/// </summary>
public decimal BoxFee { get; set; }
[Ignore]
/// <summary>
/// 配送费
/// </summary>
public decimal DeliverFee { get; set; }
/// <summary>
/// 就餐模式
/// </summary>
[Ignore]
public string BusMode
{
get;
set;
}
/// <summary>
/// 外送地址
/// </summary>
[Ignore]
public string Address
{
get;
set;
}
/// <summary>
/// 收货人
/// </summary>
[Ignore]
public string Recipients
{
get;
set;
}
/// <summary>
/// 联系电话
/// </summary>
[Ignore]
public string Phone
{
get;
set;
}
#region subin 20230916 新增,用于本地小程序订单退款。
/// <summary>
/// 小程序付款的PayuserId
/// </summary>
[Ignore]
public string OpenId { get; set; }
#endregion
#endregion
[Ignore]
public string wishtime { get; set; }
/// <summary>
/// 本单扣款结算汇总金额,考虑到数据库增加字段的风险,没有存储到数据库,上传数据时候汇总。
/// zhangy 2020-02-18 Add
/// </summary>
[JsonProperty(PropertyName = "orderChargeBack")]
[Ignore]
public decimal OrderChargeBack { get; set; } = 0.00M;
#region subin 2023-10-25 add 分账标识,用于区别是否已分账
/// <summary>
/// 是否已分账
/// </summary>
[JsonProperty(PropertyName = "isSplited")]
[Column("isSplited")]
public int IsSplited { get; set; } = 0;
#endregion
}
}