using FreeSql.DataAnnotations; using System; namespace BBWY.Server.Model.Db { [Table(Name = "aftersaleorder", DisableSyncStructure = true)] public partial class AfterSaleOrder { [Column(IsPrimary = true)] public long Id { get; set; } [Column(DbType = "datetime")] public DateTime? CreateTime { get; set; } /// /// 申请时间 /// [Column(DbType = "datetime")] public DateTime? ApplyTime { get; set; } [Column(StringLength = 50)] public string OrderId { get; set; } [Column(StringLength = 50)] public string ProductId { get; set; } /// /// 商品处理结果 /// [Column(DbType = "int(255)", MapType = typeof(int?))] public Enums.ProductResult? ProductResult { get; set; } /// /// 退款金额 /// [Column(DbType = "decimal(20,2)")] public decimal? RefundAmount { get; set; } = 0.00M; /// /// 退款时间 /// [Column(DbType = "datetime")] public DateTime? RefundTime { get; set; } /// /// 售后补发成本 /// [Column(DbType = "decimal(20,2)")] public decimal ReissueAfterSaleAmount { get; set; } = 0.00M; /// /// 补发运费 /// [Column(DbType = "decimal(20,2)")] public decimal? ReissueFreight { get; set; } = 0.00M; /// /// 补发货款 /// [Column(DbType = "decimal(20,2)")] public decimal? ReissueProductAmount { get; set; } = 0.00M; /// /// 服务单处理结果 /// [Column(DbType = "int(1)", MapType = typeof(int?))] public Enums.ServiceResult? ServiceResult { get; set; } public long? ShopId { get; set; } [Column(StringLength = 50)] public string SkuId { get; set; } /// /// 服务单号 /// [Column(StringLength = 20)] public string ServiceId { get; set; } /// /// 退货入仓操作费 /// [Column(DbType = "decimal(18,2)")] public decimal? RefundInStorageAmount { get; set; } = 0.00M; /// /// 退款采购成本 /// [Column(DbType = "decimal(18,2)")] public decimal? RefundPurchaseAmount { get; set; } = 0.00M; /// /// 耗材费 /// [Column(DbType = "decimal(18,2)")] public decimal? ConsumableAmount { get; set; } = 0.00M; /// /// 发货快递费 /// [Column(DbType = "decimal(18,2)")] public decimal? DeliveryExpressFreight { get; set; } = 0.00M; /// /// 头程费 /// [Column(DbType = "decimal(18,2)")] public decimal? FirstFreight { get; set; } = 0.00M; /// /// 入仓操作费 /// [Column(DbType = "decimal(18,2)")] public decimal? InStorageAmount { get; set; } = 0.00M; /// /// 出仓操作费 /// [Column(DbType = "decimal(18,2)")] public decimal? OutStorageAmount { get; set; } = 0.00M; /// /// 商品情况 /// [Column(DbType = "int(1)", MapType = typeof(int?))] public Enums.ProductHealth? ProductHealth { get; set; } /// /// 服务单的售后成本(不含退款采购成本) /// [Column(DbType = "decimal(20,2)")] public decimal AfterTotalCost { get; set; } = 0.0M; /// /// 仓储费 /// [Column(DbType = "decimal(20,2)")] public decimal StorageAmount { get; set; } = 0.0M; /// /// SD退货运费 /// [Column(DbType = "decimal(18,2)")] public decimal SDRefundFreight { get; set; } = 0.00M; /// /// 退款商户订单号 /// [Column(StringLength = 100)] public string RefundMerchantOrderNo { get; set; } /// /// 退款支付宝订单号 /// [Column(StringLength = 100)] public string RefundAlipayOrderNo { get; set; } /// /// 采购方式 /// [Column(DbType = "int(1)", MapType = typeof(int?))] public Enums.PurchaseMethod? PurchaseMethod { get; set; } /// /// 采购平台 /// [Column(DbType = "int(1)", MapType = (typeof(int?)))] public Enums.Platform? PurchasePlatform { get; set; } /// /// 采购单号 /// [Column(StringLength = 100)] public string PurchaseOrderId { get; set; } /// /// 采购单主键 /// public long? PurchaseOrderPKId { get; set; } } }