You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
4.2 KiB
C#

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()
{
}
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 商品Id
/// </summary>
[JsonProperty(PropertyName = "productId")]
[Column("productId")]
public string ProductId { get; set; }
/// <summary>
/// 编号
/// </summary>
[JsonProperty(PropertyName = "no")]
[Column("no")]
public string No { get; set; }
/// <summary>
/// 名称
/// </summary>
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
/// <summary>
/// 售价
/// </summary>
[JsonProperty(PropertyName = "price")]
[Column("price")]
public decimal Price { get; set; }
/// <summary>
/// 会员价
/// </summary>
[JsonProperty(PropertyName = "memberPrice")]
[Column("memberPrice")]
public decimal MemberPrice { get; set; }
/// <summary>
/// 成本价
/// </summary>
[JsonProperty(PropertyName = "costPrice")]
[Column("costPrice")]
public decimal CostPrice { get; set; }
/// <summary>
/// 第三方价
/// </summary>
[JsonProperty(PropertyName = "otherPrice")]
[Column("otherPrice")]
public decimal OtherPrice { get; set; }
/// <summary>
/// 采购价
/// </summary>
[JsonProperty(PropertyName = "purchasePrice")]
[Column("purchasePrice")]
public decimal PurchasePrice { get; set; }
/// <summary>
/// 批发价
/// </summary>
[JsonProperty(PropertyName = "dispatchPrice")]
[Column("dispatchPrice")]
public decimal DispatchPrice { get; set; }
/// <summary>
/// 物耗比
/// </summary>
[JsonProperty(PropertyName = "materialRate")]
[Column("materialRate")]
public decimal MaterialRate { get; set; }
/// <summary>
/// 最低售价
/// </summary>
[JsonProperty(PropertyName = "minPrice")]
[Column("minPrice")]
public decimal MinPrice { get; set; }
/// <summary>
/// 是否默认
/// </summary>
[JsonProperty(PropertyName = "isdefault")]
[Column("isdefault")]
public int IsDefault { get; set; }
/// <summary>
/// 是否删除(0-否;1-是;)
/// </summary>
[JsonProperty(PropertyName = "deleteFlag")]
[Column("deleteFlag")]
public int DeleteFlag { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
[JsonProperty(PropertyName = "ext1")]
[Column("ext1")]
public string Ext1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
[JsonProperty(PropertyName = "ext2")]
[Column("ext2")]
public string Ext2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
[JsonProperty(PropertyName = "ext3")]
[Column("ext3")]
public string Ext3 { get; set; }
/// <summary>
/// 理论万元用量
/// </summary>
[JsonProperty(PropertyName = "thUseLevel")]
[Column("thUseLevel")]
public decimal ThUseLevel { get; set; }
/// <summary>
/// 实际万元用量
/// </summary>
[JsonProperty(PropertyName = "realThUseLevel")]
[Column("realThUseLevel")]
public decimal RealThUseLevel { get; set; }
/// <summary>
/// 单项成本
/// </summary>
[JsonProperty(PropertyName = "cost")]
[Column("cost")]
public decimal Cost { get; set; }
}
}