|
|
|
using BBWY.Server.Model;
|
|
|
|
using FreeSql.DataAnnotations;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace BBWY.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; } = 0.00M;
|
|
|
|
|
|
|
|
/// <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 = "decimal(20,2)")]
|
|
|
|
public decimal PreferentialAmount { 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)", MapType = typeof(int?))]
|
|
|
|
public Enums.OrderType? OrderType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 支付方式
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "int(1)", MapType = typeof(int?))]
|
|
|
|
public Enums.PayType? PayType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 订单平台
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "int(1)", MapType = typeof(int?))]
|
|
|
|
public Enums.Platform? Platform { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 开始时间
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "datetime")]
|
|
|
|
public DateTime? StartTime { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 仓储类型
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "int(1)", MapType = typeof(int?))]
|
|
|
|
public Enums.StorageType? StorageType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 入仓订单标识
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 50)]
|
|
|
|
public string StoreOrder { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 商家Id
|
|
|
|
/// </summary>
|
|
|
|
public long ShopId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 商家备注
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string VenderRemark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string PurchaseRemark { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 仓库Id
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 50)]
|
|
|
|
public string StoreId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 运单号
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 100)]
|
|
|
|
public string WaybillNo { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 订单旗帜
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 10)]
|
|
|
|
public string Flag { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷单类型
|
|
|
|
/// </summary>
|
|
|
|
[Column(MapType = (typeof(int?)))]
|
|
|
|
public Enums.SDType? SDType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷单关键词
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 50)]
|
|
|
|
public string SDKey { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷单支付渠道
|
|
|
|
/// </summary>
|
|
|
|
[Column(MapType = (typeof(int?)))]
|
|
|
|
public Enums.PayChannelType? SDPayChannel { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷单交易账单号
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 50)]
|
|
|
|
public string SDPayBillNo { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 刷单人
|
|
|
|
/// </summary>
|
|
|
|
[Column(StringLength = 20)]
|
|
|
|
public string SDOperator { 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? SDCommissionAmount { 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; }
|
|
|
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
public bool? IsDecode { get; set; }
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region 代发信息
|
|
|
|
///// <summary>
|
|
|
|
///// 买家账号
|
|
|
|
///// </summary>
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public string BuyerAccount { get; set; }
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 发货运费
|
|
|
|
///// </summary>
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public decimal DeliveryFreight { get; set; } = 0.00M;
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 采购单号
|
|
|
|
///// </summary>
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public string PurchaseOrderId { get; set; }
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 采购平台
|
|
|
|
///// </summary>
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public Enums.Platform? PurchasePlatform { get; set; }
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 卖家账号
|
|
|
|
///// </summary>
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public string SellerAccount { get; set; }
|
|
|
|
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public decimal OrderDropShippingSkuAmount { get; set; }
|
|
|
|
|
|
|
|
//[Column(IsIgnore = true)]
|
|
|
|
//public decimal OrderDropShippingPurchaseFreight { get; set; }
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|