From e9a2b30d4d8a9e2de59ed72caba23747645bfbe7 Mon Sep 17 00:00:00 2001
From: shanj <18996038927@163.com>
Date: Sun, 18 Feb 2024 01:40:05 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BASKU=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Db/Product/Skuoptimizationtask.cs | 70 +++++++++++++++++++
.../LiangKu/BatchLKInventoryAlertRequest.cs | 2 +-
2 files changed, 71 insertions(+), 1 deletion(-)
create mode 100644 BBWYB.Server.Model/Db/Product/Skuoptimizationtask.cs
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
{
///
/// 需求方店铺