using FreeSql.DataAnnotations; using System; namespace BBWY.Server.Model.Db { /// /// 服务单表(new) /// [ Table(Name = "serviceorder", DisableSyncStructure = true)] public partial class ServiceOrder { [Column(IsPrimary = true)] public long Id { get; set; } /// /// 售后成本(不含退款采购成本) /// [Column(DbType = "decimal(18,2)")] public decimal? AfterTotalCost { get; set; } = 0.00M; /// /// 申请时间 /// [Column(DbType = "datetime")] public DateTime? ApplyTime { get; set; } /// /// 耗材费 /// [Column(DbType = "decimal(18,2)")] public decimal? ConsumableAmount { get; set; } = 0.00M; [Column(DbType = "datetime")] public DateTime? CreateTime { get; set; } /// /// 发货快递费 /// [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(StringLength = 1000)] public string ImageName { get; set; } /// /// 入仓操作费 /// [Column(DbType = "decimal(18,2)")] public decimal? InStorageAmount { get; set; } = 0.00M; /// /// 是否订阅快递100 /// public bool? IsSubscribeKuaiDi100 { get; set; } /// /// 是否需要订阅快递100 /// public bool? IsNeedSubscribeKuaiDi100 { get; set; } [Column(StringLength = 50)] public string OrderId { get; set; } /// /// 出仓操作费 /// [Column(DbType = "decimal(18,2)")] public decimal? OutStorageAmount { get; set; } = 0.00M; /// /// 产品外观 (严重损=0 轻微损=1 新=2) /// public int? ProductAppearance { get; set; } /// /// 产品功能 (坏=0 好=1) /// public int? ProductFunction { get; set; } /// /// 商品健康状态 (残次品=0 良品=1) /// public int? ProductHealth { get; set; } /// /// 商品情况(定义待变更);名称待定,以前的商品情况,叶总需要更换定义 /// public int? ProductHealth2 { get; set; } [Column(StringLength = 50)] public string ProductId { get; set; } /// /// 产品包装(无=0 非新=1 新=2) /// public int? ProductPackage { get; set; } /// /// 商品处理方式;弃用 /// public int? ProductResult { get; set; } /// /// 采购方式 /// public int? PurchaseMethod { get; set; } /// /// 采购单号 /// [Column(StringLength = 100)] public string PurchaseOrderId { get; set; } /// /// 采购单主键 /// public long? PurchaseOrderPKId { get; set; } /// /// 采购平台 /// public int? PurchasePlatform { get; set; } /// /// 退款支付宝订单号 /// [Column(StringLength = 100)] public string RefundAlipayOrderNo { get; set; } /// /// 退款金额 /// [Column(DbType = "decimal(20,2)")] public decimal? RefundAmount { get; set; } = 0.00M; /// /// 退货入仓操作费 /// [Column(DbType = "decimal(18,2)")] public decimal? RefundInStorageAmount { get; set; } = 0.00M; /// /// 退款商户订单号 /// [Column(StringLength = 100)] public string RefundMerchantOrderNo { get; set; } /// /// 退款采购成本 /// [Column(DbType = "decimal(18,2)")] public decimal? RefundPurchaseAmount { 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; /// /// 退货去向(退货仓=0,采购商=1,原返=2,无退货=3) /// public int? ReturnDirection { get; set; } /// /// SD退货运费 /// [Column(DbType = "decimal(18,2)")] public decimal? SDRefundFreight { get; set; } = 0.00M; /// /// 服务单号 /// [Column(StringLength = 20)] public string ServiceId { get; set; } /// /// 服务单租备注 /// [Column(StringLength = 100)] public string ServiceOrderRemark { get; set; } /// /// 服务单处理结果 /// public int? ServiceResult { get; set; } [Column(StringLength = 20)] public string ShopId { get; set; } [Column(StringLength = 50)] public string SkuId { get; set; } /// /// SKU销售件数 /// public int? SkuItemCount { get; set; } /// /// 服务单状态 /// public int? Status { get; set; } /// /// 变更时间 /// [Column(DbType = "datetime")] public DateTime? StatusUpdateTime { get; set; } /// /// 仓储费 /// [Column(DbType = "decimal(18,2)")] public decimal? StorageAmount { get; set; } = 0.00M; /// /// 服务单物流状态(0=待质检,1=已入库,2=派送中,3=运输中) /// public int? TransportDetails { get; set; } /// /// 仓库组备注 /// [Column(StringLength = 100)] public string WareHouseGrounpRemark { get; set; } /// /// 快递单号 /// [Column(StringLength = 100)] public string WayBillNo { get; set; } /// /// 快递公司名称 /// [Column(StringLength = 100)] public string ExpressName { get; set; } /// /// 质检入库时间 /// [Column(DbType = "datetime")] public DateTime? QualityInspectionInStoreTime { get; set; } } }