using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using NPoco; namespace JwKdsV.Entity.Product { [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_product_spec")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class ProductSpec : BaseEntity2 { public ProductSpec() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 商品Id /// [JsonProperty(PropertyName = "productId")] [Column("productId")] public string ProductId { get; set; } /// /// 编号 /// [JsonProperty(PropertyName = "no")] [Column("no")] public string No { get; set; } /// /// 名称 /// [JsonProperty(PropertyName = "name")] [Column("name")] public string Name { get; set; } /// /// 售价 /// [JsonProperty(PropertyName = "price")] [Column("price")] public decimal Price { get; set; } /// /// 会员价 /// [JsonProperty(PropertyName = "memberPrice")] [Column("memberPrice")] public decimal MemberPrice { get; set; } /// /// 成本价 /// [JsonProperty(PropertyName = "costPrice")] [Column("costPrice")] public decimal CostPrice { get; set; } /// /// 第三方价 /// [JsonProperty(PropertyName = "otherPrice")] [Column("otherPrice")] public decimal OtherPrice { get; set; } /// /// 采购价 /// [JsonProperty(PropertyName = "purchasePrice")] [Column("purchasePrice")] public decimal PurchasePrice { get; set; } /// /// 批发价 /// [JsonProperty(PropertyName = "dispatchPrice")] [Column("dispatchPrice")] public decimal DispatchPrice { get; set; } /// /// 物耗比 /// [JsonProperty(PropertyName = "materialRate")] [Column("materialRate")] public decimal MaterialRate { get; set; } /// /// 最低售价 /// [JsonProperty(PropertyName = "minPrice")] [Column("minPrice")] public decimal MinPrice { get; set; } /// /// 是否默认 /// [JsonProperty(PropertyName = "isdefault")] [Column("isdefault")] public int IsDefault { get; set; } /// /// 是否删除(0-否;1-是;) /// [JsonProperty(PropertyName = "deleteFlag")] [Column("deleteFlag")] public int DeleteFlag { get; set; } /// /// 扩展字段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; } /// /// 理论万元用量 /// [JsonProperty(PropertyName = "thUseLevel")] [Column("thUseLevel")] public decimal ThUseLevel { get; set; } /// /// 实际万元用量 /// [JsonProperty(PropertyName = "realThUseLevel")] [Column("realThUseLevel")] public decimal RealThUseLevel { get; set; } /// /// 单项成本 /// [JsonProperty(PropertyName = "cost")] [Column("cost")] public decimal Cost { get; set; } } }