|
|
|
using FreeSql.DataAnnotations;
|
|
|
|
|
|
|
|
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>
|
|
|
|
/// 买家备注
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string BuyerRemark { 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 = "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 = "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 = 100)]
|
|
|
|
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;
|
|
|
|
|
|
|
|
/// <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
|
|
|
|
|
|
|
|
#region 采购信息
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public string PurchaseAccountId { get; set; }
|
|
|
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public string PurchaseAccountName { get; set; }
|
|
|
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public Enums.PurchaseMethod? PurchaseMethod { get; set; }
|
|
|
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public string PurchaseOrderId { get; set; }
|
|
|
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public Enums.Platform? PurchasePlatform { get; set; }
|
|
|
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public string PurchaserName { get; set; }
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|