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.
289 lines
7.6 KiB
289 lines
7.6 KiB
using FreeSql.DataAnnotations;
|
|
|
|
namespace SiNan.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 = "decimal(20,2)")]
|
|
public decimal SellerPreferentialAmount { 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 = 200)]
|
|
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; }
|
|
|
|
/// <summary>
|
|
/// 是否为售后订单
|
|
/// </summary>
|
|
[Column(DbType = "bit")]
|
|
public bool IsAfterSaleOrder { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 是否为赠品
|
|
/// </summary>
|
|
[Column(DbType = "bit")]
|
|
public bool IsGift { get; set; } = false;
|
|
|
|
#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? SDOrderAmount { 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;
|
|
|
|
/// <summary>
|
|
/// 退款金额
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal RefundAmount { get; set; } = 0.00M;
|
|
|
|
/// <summary>
|
|
/// 退款采购金额
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal RefundPurchaseAmount { get; set; } = 0.0M;
|
|
|
|
/// <summary>
|
|
/// 所有服务单的售后成本(不含退款采购成本)
|
|
/// </summary>
|
|
[Column(IsIgnore = true)]
|
|
public decimal AfterTotalCost { get; set; } = 0.0M;
|
|
#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 仓库
|
|
[Column(IsIgnore = true)]
|
|
public string StoreName { get; set; }
|
|
#endregion
|
|
}
|
|
|
|
}
|
|
|