using Newtonsoft.Json; using NPoco; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace POSV.Entity { /// /// 礼品卡销售 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_card_sale")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class CardSale : BaseEntity { public CardSale() { } /// /// 租户编码 /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId{ get; set; }// 租户ID /// /// 门店ID /// [JsonProperty(PropertyName = "storeId")] [Column("storeId")] public string StoreId{ get; set; }// 门店ID /// /// 门店编号 /// [JsonProperty(PropertyName = "storeNo")] [Column("storeNo")] public string StoreNo{ get; set; }// 门店编号 /// /// 门店名称 /// [JsonProperty(PropertyName = "storeName")] [Column("storeName")] public string StoreName{ get; set; }// 门店名称 /// /// 员工ID /// [JsonProperty(PropertyName = "workerId")] [Column("workerId")] public string WorkerId { get; set; }// 员工ID /// /// 员工编号 /// [JsonProperty(PropertyName = "workerNo")] [Column("workerNo")] public string WorkerNo { get; set; }// 员工编号 /// /// 员工名称 /// [JsonProperty(PropertyName = "workerName")] [Column("workerName")] public string WorkerName { get; set; }// 员工名称 /// /// POS编号 /// [JsonProperty(PropertyName = "posNo")] [Column("posNo")] public string PosNo { get; set; }// POS编号 /// /// 班次编号 /// [JsonProperty(PropertyName = "shiftNo")] [Column("shiftNo")] public string ShiftNo { get; set; }// 班次名称 /// /// 班次名称 /// [JsonProperty(PropertyName = "shiftName")] [Column("shiftName")] public string ShiftName { get; set; }// 班次名称 /// /// 礼品卡方案编号 /// [JsonProperty(PropertyName = "planNo")] [Column("planNo")] public string PlanNo { get; set; }// 礼品卡方案编号 /// /// 礼品卡方案名称 /// [JsonProperty(PropertyName = "planName")] [Column("planName")] public string PlanName { get; set; }//礼品卡方案名称 /// /// 卡号 /// [JsonProperty(PropertyName = "cardNo")] [Column("cardNo")] public string CardNo { get; set; }// 卡号 /// /// 业务编号 /// [JsonProperty(PropertyName = "busNo")] [Column("busNo")] public string BusNo { get; set; }// 业务编号 /// /// 业务编号 /// [JsonProperty(PropertyName = "ticketNo")] [Column("ticketNo")] public string TicketNo { get; set; }// 业务编号 /// /// 支付状态 /// [JsonProperty(PropertyName = "payStatus")] [Column("payStatus")] public int PayStatus { get; set; }// 支付状态1付款成功-2已退单 [Ignore] public string StatusDesc { get; set; } /// /// 支付时候扫码的码 /// [JsonProperty(PropertyName = "authCode")] [Column("authCode")] public string AuthCode { get; set; }// 支付时候扫码的码 /// ///建议零售价 /// [JsonProperty(PropertyName = "retailPrice")] [Column("retailPrice")] public decimal RetailPrice { get; set; }// 建议零售价 /// /// 卡真实金额 /// [JsonProperty(PropertyName = "realAmount")] [Column("realAmount")] public decimal RealAmount { get; set; }// 卡真实金额 /// /// 付款金额 /// [JsonProperty(PropertyName = "money")] [Column("money")] public decimal Money { get; set; }// 付款金额 /// /// 请求内容 /// [JsonProperty(PropertyName = "requestMessage")] [Column("requestMessage")] public string RequestMessage { get; set; }// 请求内容 /// /// 原单号 /// [JsonProperty(PropertyName = "orgBusNo")] [Column("orgBusNo")] public string OrgBusNo { get; set; }// 原单号 /// /// 充值支付明细 /// [Ignore] public List Pay; } }