diff --git a/BBWYB.Server.Model/Db/Product/Skuoptimizationtask.cs b/BBWYB.Server.Model/Db/Product/Skuoptimizationtask.cs new file mode 100644 index 0000000..24f5c93 --- /dev/null +++ b/BBWYB.Server.Model/Db/Product/Skuoptimizationtask.cs @@ -0,0 +1,70 @@ +using FreeSql.DataAnnotations; + +namespace BBWYB.Server.Model.Db +{ + + [Table(Name = "skuoptimizationtask", DisableSyncStructure = true)] + public partial class SkuOptimizationTask + { + [Column(DbType = "bigint", IsPrimary = true)] + public long Id { get; set; } + + /// + /// 完成优化时间 + /// + [Column(DbType = "datetime")] + public DateTime? CompletionTime { get; set; } + + [Column(DbType = "datetime")] + public DateTime? CreateTime { get; set; } + + public bool? IsOptimizationCompleted { get; set; } = false; + + [Column(StringLength = 50)] + public string JDSkuId { get; set; } + + /// + /// 预估需求量 + /// + [Column(DbType = "int")] + public int? PreItemCount { get; set; } = 0; + + /// + /// 预估采购金额 + /// + [Column(DbType = "decimal(18,2)")] + public decimal? PrePurchasedAmount { get; set; } = 0.00M; + + [Column(StringLength = 50)] + public string ProductId { get; set; } + + /// + /// 距离安全预警天数 + /// + [Column(DbType = "int")] + public int? SafeWarningRemainingDay { get; set; } = 0; + + [Column(DbType = "bigint")] + public long? ShopId { get; set; } + + [Column(StringLength = 50)] + public string ShopName { get; set; } + + [Column(StringLength = 50)] + public string SkuId { get; set; } + + /// + /// 触发优化原因 首次采购 = 0, 首次优化 = 1, 再次优化 = 2 + /// + [Column(DbType = "int", MapType = typeof(int))] + public Enums.TriggerOptimizationReason? TriggerOptimizationReason { get; set; } = 0; + + /// + /// 进行预估的采购成本 + /// + [Column(DbType = "decimal(18,2)")] + public decimal? UsePrePurchasedPrice { get; set; } = 0.00M; + + } + +} diff --git a/BBWYB.Server.Model/Dto/Request/LiangKu/BatchLKInventoryAlertRequest.cs b/BBWYB.Server.Model/Dto/Request/LiangKu/BatchLKInventoryAlertRequest.cs index 7990a39..faa9ad0 100644 --- a/BBWYB.Server.Model/Dto/Request/LiangKu/BatchLKInventoryAlertRequest.cs +++ b/BBWYB.Server.Model/Dto/Request/LiangKu/BatchLKInventoryAlertRequest.cs @@ -1,6 +1,6 @@ namespace BBWYB.Server.Model.Dto { - public class BatchLKInventoryAlertRequest + public class BatchLKInventoryAlertRequest { /// /// 需求方店铺