You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
263 lines
6.9 KiB
263 lines
6.9 KiB
using FreeSql.DataAnnotations;
|
|
using static BBWYB.Server.Model.Enums;
|
|
|
|
namespace BBWYB.Server.Model.Db
|
|
{
|
|
|
|
/// <summary>
|
|
/// 订单表
|
|
/// </summary>
|
|
[Table(Name = "order", DisableSyncStructure = true)]
|
|
public partial class Order
|
|
{
|
|
|
|
[Column(StringLength = 50, IsPrimary = true, IsNullable = false)]
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 订单Sn号
|
|
/// </summary>
|
|
[Column(StringLength = 100)]
|
|
public string OrderSn { get; set; }
|
|
|
|
/// <summary>
|
|
/// 买家备注
|
|
/// </summary>
|
|
|
|
public string BuyerRemark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 买家账号
|
|
/// </summary>
|
|
public string BuyerAccount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结束时间
|
|
/// </summary>
|
|
[Column(DbType = "datetime")]
|
|
public DateTime? EndTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 商品运费(用户承担)
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? FreightPrice { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改时间
|
|
/// </summary>
|
|
[Column(DbType = "datetime")]
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 支付时间
|
|
/// </summary>
|
|
[Column(DbType = "datetime", IsNullable = true)]
|
|
public DateTime? PayTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用户应付金额
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? OrderPayment { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 订单货款金额(包含平台补贴)
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? OrderSellerPrice { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 实收打包费
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? InPackAmount { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 订单状态
|
|
/// </summary>
|
|
[Column(DbType = "int(1)", MapType = typeof(int))]
|
|
public Enums.OrderState? OrderState { get; set; }
|
|
|
|
/// <summary>
|
|
/// 订单总价
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? OrderTotalPrice { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 订单类型
|
|
/// </summary>
|
|
[Column(DbType = "int(1)")]
|
|
public int? OrderType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 支付方式
|
|
/// </summary>
|
|
[Column(DbType = "int(1)")]
|
|
public int? PayType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 订单平台
|
|
/// </summary>
|
|
[Column(DbType = "int(1)", MapType = typeof(int?))]
|
|
public Enums.Platform? Platform { get; set; }
|
|
|
|
/// <summary>
|
|
/// 平台补贴
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? PreferentialAmount { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 采购备注
|
|
/// </summary>
|
|
|
|
public string PurchaseRemark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 商家优惠金额(商家承担)
|
|
/// </summary>
|
|
[Column(DbType = "decimal(20,2)")]
|
|
public decimal? SellerPreferentialAmount { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 商家Id
|
|
/// </summary>
|
|
[Column(DbType = "bigint(1)")]
|
|
public long? ShopId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开始时间
|
|
/// </summary>
|
|
[Column(DbType = "datetime")]
|
|
public DateTime? StartTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 商家备注
|
|
/// </summary>
|
|
[Column(StringLength = 500)]
|
|
public string VenderRemark { get; set; }
|
|
|
|
///// <summary>
|
|
///// 运单号
|
|
///// </summary>
|
|
//[Column(StringLength = 100)]
|
|
//public string WaybillNo { get; set; }
|
|
|
|
///// <summary>
|
|
///// 快递公司名称
|
|
///// </summary>
|
|
//[Column(StringLength = 100)]
|
|
//public string ExpressName { get; set; }
|
|
|
|
///// <summary>
|
|
///// 来源Sku
|
|
///// </summary>
|
|
//[Column(StringLength = 500)]
|
|
//public string SourceSku { get; set; }
|
|
|
|
/// <summary>
|
|
/// 来源店铺名
|
|
/// </summary>
|
|
[Column(StringLength = 100)]
|
|
public string SourceShopName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 业务端订单号
|
|
/// </summary>
|
|
[Column(StringLength = 100)]
|
|
public string ClientOrderId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否采购
|
|
/// </summary>
|
|
public bool IsPurchased { get; set; }
|
|
|
|
#region 订单成本
|
|
/// <summary>
|
|
/// 平台扣点金额
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal? PlatformCommissionAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 平台扣点百分比
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal? PlatformCommissionRatio { get; set; }
|
|
|
|
/// <summary>
|
|
/// 利润
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal? Profit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购金额
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal? PurchaseAmount { get; set; } = 0.00M;
|
|
|
|
[Column(IsIgnore = true)]
|
|
public decimal? SkuAmount { get; set; } = 0.00M;
|
|
|
|
[Column(IsIgnore = true)]
|
|
public decimal? PurchaseFreight { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 发货快递费
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal? DeliveryExpressFreight { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 是否手动编辑过成本
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public bool? IsManualEdited { get; set; } = false;
|
|
|
|
#endregion
|
|
|
|
#region 收货人信息
|
|
[Column(IsIgnore = true)]
|
|
public string Address { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string City { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string ContactName { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string County { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string Mobile { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string Province { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string TelePhone { get; set; }
|
|
|
|
[Column(IsIgnore = true)]
|
|
public string Town { get; set; }
|
|
#endregion
|
|
|
|
[Column(DbType = "int(1)", MapType = typeof(int?))]
|
|
public PackConfigState? PackConfigState { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否为待打包
|
|
/// </summary>
|
|
[Column(DbType = "bit")]
|
|
public bool? IsWaitPack { get; set; } = false;
|
|
|
|
|
|
[Column(MapType = typeof(int?))]
|
|
public Enums.IntoStoreType? IntoStoreType { get; set; }
|
|
}
|
|
|
|
}
|
|
|