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")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class Product : BaseEntity2 { public Product() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { 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 = "typePath")] [Column("typePath")] public string TypePath { get; set; } /// /// 编号 /// [JsonProperty(PropertyName = "no")] [Column("no")] public string No { get; set; } /// /// 名称 /// [JsonProperty(PropertyName = "name")] [Column("name")] public string Name { get; set; } /// /// 简称 /// [JsonProperty(PropertyName = "shortName")] [Column("shortName")] public string ShortName { get; set; } /// /// 拼音简码 /// [JsonProperty(PropertyName = "spell")] [Column("spell")] public string Spell { get; set; } /// /// 辅助编码 /// [JsonProperty(PropertyName = "assistNo")] [Column("assistNo")] public string AssistNo { get; set; } /// /// 第三方编码 /// [JsonProperty(PropertyName = "otherNo")] [Column("otherNo")] public string OtherNo { get; set; } /// /// 商品条码 /// [JsonProperty(PropertyName = "barCode")] [Column("barCode")] public string BarCode { get; set; } /// /// 英文名称 /// [JsonProperty(PropertyName = "english")] [Column("english")] public string English { get; set; } /// /// 单位 /// [JsonProperty(PropertyName = "unitId")] [Column("unitId")] public string UnitId { get; set; } /// /// 菜品说明 /// [JsonProperty(PropertyName = "description")] [Column("memo")] public string Memo { get; set; } /// /// 提成方式(0不提成1是比例2固定值) /// [JsonProperty(PropertyName = "commissionType")] [Column("commissionType")] public int CommissionType { get; set; } /// /// 提成值 /// [JsonProperty(PropertyName = "commissionValue")] [Column("commissionValue")] public decimal CommissionValue { get; set; } /// /// 可折扣(0否-1是) /// [JsonProperty(PropertyName = "discountFlag")] [Column("discountFlag")] public int DiscountFlag { get; set; } /// /// 是否套菜(0否-1是) /// [JsonProperty(PropertyName = "suitFlag")] [Column("suitFlag")] public int SuitFlag { get; set; } /// /// 是否主食(0否-1是) /// [JsonProperty(PropertyName = "tapleFlag")] [Column("tapleFlag")] public int TapleFlag { get; set; } /// /// 是否需要称重(0否-1是) /// [JsonProperty(PropertyName = "weighFlag")] [Column("weighFlag")] public int WeighFlag { get; set; } /// /// 是否可议价(0否-1是) /// [JsonProperty(PropertyName = "currentFlag")] [Column("currentFlag")] public int CurrentFlag { get; set; } /// /// 会员折上折(0不允许-1允许) /// [JsonProperty(PropertyName = "mebDiscountFlag")] [Column("mebDiscountFlag")] public int MebDiscountFlag { get; set; } /// /// 允许赠送(0不允许-1允许) /// [JsonProperty(PropertyName = "giveFlag")] [Column("giveFlag")] public int GiveFlag { get; set; } /// /// 打印标签(0否-1是) /// [JsonProperty(PropertyName = "labelPrintFlag")] [Column("labelPrintFlag")] public int LabelPrintFlag { get; set; } /// /// 允许促销(0不允许-1允许) /// [JsonProperty(PropertyName = "promotionFlag")] [Column("promotionFlag")] public int PromotionFlag { get; set; } /// /// 商品类型(0普通商品1成品10原料11辅料12半成品) /// [JsonProperty(PropertyName = "type")] [Column("type")] public int Type { get; set; } /// /// 管理库存(0否-1是) /// [JsonProperty(PropertyName = "stockFlag")] [Column("stockFlag")] public int StockFlag { get; set; } /// /// 积分类型(0不积分1按次2按金额) /// [JsonProperty(PropertyName = "pointType")] [Column("pointType")] public int PointType { get; set; } /// /// 积分值 /// [JsonProperty(PropertyName = "pointValue")] [Column("pointValue")] public decimal PointValue { get; set; } /// /// 进项税 /// [JsonProperty(PropertyName = "purchaseTax")] [Column("purchaseTax")] public decimal PurchaseTax { get; set; } /// /// 销项税 /// [JsonProperty(PropertyName = "saleTax")] [Column("saleTax")] public decimal SaleTax { get; set; } /// /// 联营扣率 /// [JsonProperty(PropertyName = "lyRate")] [Column("lyRate")] public decimal LyRate { get; set; } /// /// 停用(0否-1是) /// [JsonProperty(PropertyName = "stopFlag")] [Column("stopFlag")] public int StopFlag { get; set; } /// /// 组名 /// [JsonProperty(PropertyName = "groupName")] [Column("groupName")] public string GroupName { get; set; } /// /// 图片 /// [JsonProperty(PropertyName = "picture")] [Column("picture")] public string Picture { 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 = "minPrice")] [Column("minPrice")] public decimal MinPrice { get; set; } /// /// 批发价 /// [JsonProperty(PropertyName = "dispatchPrice")] [Column("dispatchPrice")] public decimal DispatchPrice { get; set; } /// /// 规格数量(门店对应的数量) /// [JsonProperty(PropertyName = "specCount")] [Column("specCount")] public int SpecCount { get; set; } /// /// 厨显标识(0否1是) /// [JsonProperty(PropertyName = "kdsFlag")] [Column("kdsFlag")] public int KdsFlag { 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; } } }