using System; using NPoco; using Newtonsoft.Json; namespace POSV.Entity { [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_split_store_pay")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class SplitStorePay : BaseEntity { public SplitStorePay() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 客户端ID /// 是否必填 :false /// [JsonProperty(PropertyName = "clientId")] [Column("clientId")] public string ClientId { get; set; } /// /// 设置ID /// 是否必填 :false /// [JsonProperty(PropertyName = "programId")] [Column("programId")] public string ProgramId { get; set; } /// /// 门店Id /// [JsonProperty(PropertyName = "storeId")] [Column("storeId")] public string StoreId { get; set; } /// /// 分店ID /// [JsonProperty(PropertyName = "splitStoreId")] [Column("splitStoreId")] public string SplitStoreId { get; set; } /// /// 门店编号 /// [JsonProperty(PropertyName = "storeNo")] [Column("storeNo")] public string StoreNo { get; set; } /// /// 付款单号 /// [JsonProperty(PropertyName = "payNo")] [Column("payNo")] public string PayNo { get; set; } /// /// 销售单ID /// [JsonProperty(PropertyName = "ticketId")] [Column("ticketId")] public string TicketId { get; set; } /// /// 销售单号 /// [JsonProperty(PropertyName = "busNo")] [Column("busNo")] public string BusNo { get; set; } /// /// 付款方式编号 /// [JsonProperty(PropertyName = "payTypeNo")] [Column("payTypeNo")] public string PayTypeNo { get; set; } /// /// 付款方式 /// [JsonProperty(PropertyName = "payType")] [Column("payType")] public string PayType { get; set; } /// /// 实收金额 /// [JsonProperty(PropertyName = "paid")] [Column("paid")] public decimal Paid { get; set; } /// /// 找零金额 /// [JsonProperty(PropertyName = "rchange")] [Column("rchange")] public decimal Rchange { get; set; } /// /// 已收金额 /// [JsonProperty(PropertyName = "money")] [Column("money")] public decimal Money { get; set; } /// /// 溢出金额 /// [JsonProperty(PropertyName = "overAmount")] [Column("overAmount")] public decimal OverAmount { get; set; } /// /// 凭证号 /// [JsonProperty(PropertyName = "voucherNo")] [Column("voucherNo")] public string VoucherNo { get; set; } /// /// 付款时间 /// [JsonProperty(PropertyName = "payDate")] [Column("payDate")] public string PayDate { get; set; } /// /// 付款卡号 /// [JsonProperty(PropertyName = "cardNo")] [Column("cardNo")] public string CardNo { get; set; } /// /// 是否实收 /// [JsonProperty(PropertyName = "incomeFlag")] [Column("incomeFlag")] public int IncomeFlag { get; set; } /// /// 第三方扣费类型 /// [JsonProperty(PropertyName = "otherRateType")] [Column("otherRateType")] public int OtherRateType { get; set; } /// /// 第三方扣费值 /// [JsonProperty(PropertyName = "otherRateValue")] [Column("otherRateValue")] public decimal OtherRateValue { get; set; } /// /// 第三方扣费 /// [JsonProperty(PropertyName = "otherRate")] [Column("otherRate")] public decimal OtherRate { get; set; } /// /// 支付客户端类型 /// -1无 0原生支付 1付呗支付 2POS通交易-3 嗖嗖支付 /// [JsonProperty(PropertyName = "payClientType")] [Column("payClientType")] public int PayClientType { get; set; } /// /// 支付渠道 /// 1无 0原生支付 1付呗支付 2POS通交易-3 嗖嗖支付 /// [JsonProperty(PropertyName = "payChannel")] [Column("payChannel")] public int PayChannel { get; set; } /// /// 扣率 /// [JsonProperty(PropertyName = "deductionRate")] [Column("deductionRate")] public decimal DeductionRate { get; set; } /// /// 扣款 /// [JsonProperty(PropertyName = "chargeBack")] [Column("chargeBack")] public decimal ChargeBack { get; set; } /// /// 备注 /// [JsonProperty(PropertyName = "memo")] [Column("memo")] public string Memo { get; set; } /// /// 是否失效 /// [JsonProperty(PropertyName = "isInvalid")] [Column("isInvalid")] public string IsInvalid { get; set; } /// /// 订单ID /// [JsonProperty(PropertyName = "orderId")] [Column("orderId")] public string OrderId { get; set; } /// /// 订单明细ID /// [JsonProperty(PropertyName = "orderItemId")] [Column("orderItemId")] public string OrderItemId { get; set; } /// /// 支付记录ID /// [JsonProperty(PropertyName = "payId")] [Column("payId")] public string PayId { get; set; } /// /// 支付记录支付明细ID /// [JsonProperty(PropertyName = "payItemId")] [Column("payItemId")] public string PayItemId { get; set; } /// /// 订单同步状态 0-新增,1-已同步,2-问题单 /// [JsonProperty(PropertyName = "sync")] [Column("syncStatus")] public int SyncStatus { get; set; } = 0; /// /// 上传错误次数,错误次数越多,优先级越低 /// [JsonProperty(PropertyName = "uploadErrors")] [Column("uploadErrors")] public int UploadErrors { get; set; } /// /// 数据上传状态 /// [JsonProperty(PropertyName = "uploadStatus")] [Column("uploadStatus")] public int UploadStatus { get; set; } = -1; /// /// 数据上传消息说明 /// [JsonProperty(PropertyName = "uploadMessage")] [Column("uploadMessage")] public string UploadMessage { get; set; } = string.Empty; /// /// 数据上传错误码 /// [JsonProperty(PropertyName = "uploadErrCode")] [Column("uploadErrCode")] public string UploadErrCode { get; set; } = string.Empty; /// /// 数据上传错误说明 /// [JsonProperty(PropertyName = "uploadErrMessage")] [Column("uploadErrMessage")] public string UploadErrMessage { get; set; } = string.Empty; /// /// 数据上传成功的时间 /// [JsonProperty(PropertyName = "uploadTime")] [Column("uploadTime")] public string UploadTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); /// /// 菜品Id /// [JsonProperty(PropertyName = "productId")] [Column("productId")] public string ProductId { get; set; } /// /// 退款金额 /// [JsonProperty(PropertyName = "refundAmount")] [Column("refundAmount")] public decimal RefundAmount { get; set; } /// /// 订单代收用户 /// [JsonProperty(PropertyName = "fromBizUserld")] [Column("fromBizUserld")] public string FromBizUserld { get; set; } /// /// 订单类型 /// [JsonProperty(PropertyName = "orderType")] [Column("orderType")] public int OrderType { get; set; } = 0; /// /// 是否有退款 /// 0:无,1:有 /// [JsonProperty(PropertyName = "isRefund")] [Column("isRefund")] public int IsRefund { get; set; } = 0; /// /// 采购数量 /// [JsonProperty(PropertyName = "quantity")] [Column("quantity")] public decimal Quantity { get; set; } = 0; /// /// 退货数量 /// [JsonProperty(PropertyName = "refundQuantity")] [Column("refundQuantity")] public decimal RefundQuantity { get; set; } = 0; /// /// 手续费 /// [JsonProperty(PropertyName = "fee")] [Column("fee")] public decimal fee { get; set; } /// /// 主数据Id /// [JsonProperty(PropertyName = "pid")] [Column("pid")] public string Pid { get; set; } } }