using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using NPoco; namespace POSV.Entity { [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_sale_clear")] [PrimaryKey(new string[] { "id" } , AutoIncrement = false)] public class SaleClear : BaseEntity, IEqualityComparer { /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 门店编号 /// [JsonProperty(PropertyName = "storeNo")] [Column("storeNo")] public string StoreNo { get; set; } /// /// POS编号 /// [JsonProperty(PropertyName = "posNo")] [Column("posNo")] public string PosNo { get; set; } /// /// 品牌Id /// [JsonProperty(PropertyName = "brandId")] [Column("brandId")] public string BrandId { get; set; } /// /// 类别Id /// [JsonProperty(PropertyName = "typeId")] [Column("typeId")] public string TypeId { get; set; } /// /// 分类名称 /// [JsonProperty(PropertyName = "typeName")] [Column("typeName")] public string TypeName { get; set; } /// /// 商品Id /// [JsonProperty(PropertyName = "productId")] public string ProductId { get; set; } /// /// 编号 /// [JsonProperty(PropertyName = "productNo")] [Column("productNo")] public string ProductNo { get; set; } /// /// 名称 /// [JsonProperty(PropertyName = "productName")] [Column("productName")] public string ProductName { get; set; } /// /// 剩余数量 /// [JsonProperty(PropertyName = "quantity")] [Column("quantity")] public decimal Quantity { get; set; } /// /// 提醒数量 /// [JsonProperty(PropertyName = "notify")] [Column("notify")] public decimal NotifyQuantity { get; set; } /// /// 已售数量 /// [JsonProperty(PropertyName = "sales")] [Column("sales")] public decimal SaleQuantity { get; set; } /// /// 沽清数量 /// [JsonProperty(PropertyName = "total")] [Column("total")] public decimal TotalQuantity { get; set; } /// /// 沽清时间 /// [JsonProperty(PropertyName = "startTime")] [Column("startTime")] public string StartTime { get; set; } /// /// 结束时间 /// [JsonProperty(PropertyName = "endTime")] [Column("endTime")] public string EndTime { get; set; } /// /// 取消时间 /// [JsonProperty(PropertyName = "stopTime")] [Column("stopTime")] public string StopTime { get; set; } /// /// 停止人 /// [JsonProperty(PropertyName = "stopUser")] [Column("stopUser")] public string StopUser { get; set; } = DEFAULT_SYNC_USER; /// /// 单位 /// [JsonProperty(PropertyName = "unitId")] [Column("unitId")] public string UnitId { get; set; } /// /// 计量单位名称 /// [JsonProperty(PropertyName = "unitName")] [Column("unitName")] public string UnitName { get; set; } /// /// 商品默认规格Id /// [JsonProperty(PropertyName = "specId")] [Column("specId")] public string SpecId { get; set; } /// /// 商品默认规格名称 /// [JsonProperty(PropertyName = "specName")] [Column("specName")] public string SpecName { get; set; } /// /// 是否套餐(0否1是) /// [JsonProperty(PropertyName = "suitFlag")] [Column("suitFlag")] public int SuitFlag { get; set; } /// /// 是否取消(0否1是) /// [JsonProperty(PropertyName = "stopFlag")] [Column("stopFlag")] public int StopFlag { get; set; } /// /// 颜色 /// [JsonProperty(PropertyName = "memo")] [Column("memo")] public string Memo { get; set; } /// /// 是否冻结,过期或者未到执行时间 /// [JsonProperty(PropertyName = "frozen")] [Ignore] public bool Frozen { get; set; } = false; /// /// 扩展字段1 /// [JsonProperty(PropertyName = "ext1")] [Column("ext1")] public string Ext1 { get; set; } /// /// 扩展字段2 /// [JsonProperty(PropertyName = "ext2")] [Column("ext2")] public string Ext2 { get; set; } /// /// 扩展字段3 /// [JsonProperty(PropertyName = "ext3")] [Column("ext3")] public string Ext3 { get; set; } public bool Equals(SaleClear x , SaleClear y) { return x.Id.Equals(y.Id); } public int GetHashCode(SaleClear obj) { return obj.GetHashCode(); } } }