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.

222 lines
5.9 KiB
C#

9 months ago
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<SaleClear>
{
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 门店编号
/// </summary>
[JsonProperty(PropertyName = "storeNo")]
[Column("storeNo")]
public string StoreNo { get; set; }
/// <summary>
/// POS编号
/// </summary>
[JsonProperty(PropertyName = "posNo")]
[Column("posNo")]
public string PosNo { get; set; }
/// <summary>
/// 品牌Id
/// </summary>
[JsonProperty(PropertyName = "brandId")]
[Column("brandId")]
public string BrandId { get; set; }
/// <summary>
/// 类别Id
/// </summary>
[JsonProperty(PropertyName = "typeId")]
[Column("typeId")]
public string TypeId { get; set; }
/// <summary>
/// 分类名称
/// </summary>
[JsonProperty(PropertyName = "typeName")]
[Column("typeName")]
public string TypeName { get; set; }
/// <summary>
/// 商品Id
/// </summary>
[JsonProperty(PropertyName = "productId")]
public string ProductId { get; set; }
/// <summary>
/// 编号
/// </summary>
[JsonProperty(PropertyName = "productNo")]
[Column("productNo")]
public string ProductNo { get; set; }
/// <summary>
/// 名称
/// </summary>
[JsonProperty(PropertyName = "productName")]
[Column("productName")]
public string ProductName { get; set; }
/// <summary>
/// 剩余数量
/// </summary>
[JsonProperty(PropertyName = "quantity")]
[Column("quantity")]
public decimal Quantity { get; set; }
/// <summary>
/// 提醒数量
/// </summary>
[JsonProperty(PropertyName = "notify")]
[Column("notify")]
public decimal NotifyQuantity { get; set; }
/// <summary>
/// 已售数量
/// </summary>
[JsonProperty(PropertyName = "sales")]
[Column("sales")]
public decimal SaleQuantity { get; set; }
/// <summary>
/// 沽清数量
/// </summary>
[JsonProperty(PropertyName = "total")]
[Column("total")]
public decimal TotalQuantity { get; set; }
/// <summary>
/// 沽清时间
/// </summary>
[JsonProperty(PropertyName = "startTime")]
[Column("startTime")]
public string StartTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
[JsonProperty(PropertyName = "endTime")]
[Column("endTime")]
public string EndTime { get; set; }
/// <summary>
/// 取消时间
/// </summary>
[JsonProperty(PropertyName = "stopTime")]
[Column("stopTime")]
public string StopTime { get; set; }
/// <summary>
/// 停止人
/// </summary>
[JsonProperty(PropertyName = "stopUser")]
[Column("stopUser")]
public string StopUser { get; set; } = DEFAULT_SYNC_USER;
/// <summary>
/// 单位
/// </summary>
[JsonProperty(PropertyName = "unitId")]
[Column("unitId")]
public string UnitId { get; set; }
/// <summary>
/// 计量单位名称
/// </summary>
[JsonProperty(PropertyName = "unitName")]
[Column("unitName")]
public string UnitName { get; set; }
/// <summary>
/// 商品默认规格Id
/// </summary>
[JsonProperty(PropertyName = "specId")]
[Column("specId")]
public string SpecId { get; set; }
/// <summary>
/// 商品默认规格名称
/// </summary>
[JsonProperty(PropertyName = "specName")]
[Column("specName")]
public string SpecName { get; set; }
/// <summary>
/// 是否套餐(0否1是)
/// </summary>
[JsonProperty(PropertyName = "suitFlag")]
[Column("suitFlag")]
public int SuitFlag { get; set; }
/// <summary>
/// 是否取消(0否1是)
/// </summary>
[JsonProperty(PropertyName = "stopFlag")]
[Column("stopFlag")]
public int StopFlag { get; set; }
/// <summary>
/// 颜色
/// </summary>
[JsonProperty(PropertyName = "memo")]
[Column("memo")]
public string Memo { get; set; }
/// <summary>
/// 是否冻结,过期或者未到执行时间
/// </summary>
[JsonProperty(PropertyName = "frozen")]
[Ignore]
public bool Frozen { get; set; } = false;
/// <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; }
public bool Equals(SaleClear x , SaleClear y)
{
return x.Id.Equals(y.Id);
}
public int GetHashCode(SaleClear obj)
{
return obj.GetHashCode();
}
}
}