From b7da1f32d5d9997378b5ac535593a3f6144af46b Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 15 十月 2025 17:15:38 +0800
Subject: [PATCH] 新增AGV与堆垛机移库判断及缓存优化

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs |  139 +++++-----------------------------------------
 1 files changed, 16 insertions(+), 123 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs"
index cb15130..b8c8a02 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs"
@@ -5,137 +5,30 @@
 namespace WIDESEA_Model.Models
 {
     [SugarTable(nameof(DtStockInfo_Hty), "搴撳瓨淇℃伅鍘嗗彶")]
-    public class DtStockInfo_Hty : BaseEntity
+    public class DtStockInfo_Hty : DtStockInfo, IBaseHistoryEntity
     {
         /// <summary>
-        /// 涓婚敭
+        /// 鍘熻〃涓婚敭
         /// </summary>
-        [ImporterHeader(Name = "涓婚敭")]
-        [ExporterHeader(DisplayName = "涓婚敭")]
-        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")]
-        public int Id { get; set; }
+        [ImporterHeader(Name = "鍘熻〃涓婚敭")]
+        [ExporterHeader(DisplayName = "鍘熻〃涓婚敭")]
+        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "鍘熻〃涓婚敭")]
+        public int SourceId { get; set; }
 
         /// <summary>
-        /// 鎵樼洏缂栧彿
+        /// 鎿嶄綔绫诲瀷
         /// </summary>
-        [ImporterHeader(Name = "鎵樼洏缂栧彿")]
-        [ExporterHeader(DisplayName = "鎵樼洏缂栧彿")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鎵樼洏缂栧彿")]
-        public string PalletCode { get; set; }
+        [ImporterHeader(Name = "鎿嶄綔绫诲瀷")]
+        [ExporterHeader(DisplayName = "鎿嶄綔绫诲瀷")]
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鎿嶄綔绫诲瀷")]
+        public string OperateType { get; set; }
 
         /// <summary>
-        /// 璐т綅缂栧彿
+        /// 绉诲叆鍘嗗彶鏃堕棿
         /// </summary>
-        [ImporterHeader(Name = "璐т綅ID")]
-        [ExporterHeader(DisplayName = "璐т綅ID")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "璐т綅ID")]
-        public int LocationId { get; set; }
-
-        /// <summary>
-        /// 璐т綅缂栧彿
-        /// </summary>
-        [ImporterHeader(Name = "璐т綅缂栧彿")]
-        [ExporterHeader(DisplayName = "璐т綅缂栧彿")]
-        [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "璐т綅缂栧彿")]
-        public string LocationCode { get; set; }
-
-        /// <summary>
-        /// 鏄惁婊$洏
-        /// </summary>
-        [ImporterHeader(Name = "鏄惁瀹炵洏")]
-        [ExporterHeader(DisplayName = "鏄惁瀹炵洏")]
-        [SugarColumn(IsNullable = false, ColumnDescription = "鏄惁婊$洏", DefaultValue = "0")]
-        public bool IsFull { get; set; }
-
-        /// <summary>
-        /// 澶囨敞 (闈欏埗\闄堝寲鏃堕棿)
-        /// </summary>
-        [ImporterHeader(Name = "鐢佃姱鏁伴噺")]
-        [ExporterHeader(DisplayName = "鐢佃姱鏁伴噺")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "鐢佃姱鏁伴噺")]
-        public string Remark { get; set; }
-
-        /// <summary>
-        /// 鍏宠仈宸ュ簭杩斿洖鏃堕棿锛堟敞娑瞈闈欑疆鏃堕暱锛�
-        /// </summary>
-        [ImporterHeader(Name = "宸ュ簭杩斿洖鏃堕棿")]
-        [ExporterHeader(DisplayName = "宸ュ簭杩斿洖鏃堕棿")]
-        public string LinedProcessFeedbackTime { get; set; }
-
-        /// <summary>
-        /// 鐗瑰緛鍙傛暟杩斿洖(闈欑疆鏃堕暱)
-        /// </summary>
-        [ImporterHeader(Name = "闈欑疆鏃堕暱")]
-        [ExporterHeader(DisplayName = "闈欑疆鏃堕暱")]
-        public string SpecialParameterDuration { get; set; }
-
-        /// <summary>
-        /// 鐢熶骇浜х嚎
-        /// </summary>
-        [ImporterHeader(Name = "鐢熶骇浜х嚎")]
-        [ExporterHeader(DisplayName = "鐢熶骇浜х嚎")]
-        public string ProductionLine { get; set; }
-
-        /// <summary>
-        /// 鍖哄煙缂栫爜
-        /// </summary>
-        [ImporterHeader(Name = "鍖哄煙缂栫爜")]
-        [ExporterHeader(DisplayName = "鍖哄煙缂栫爜")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "鍖哄煙缂栫爜")]
-        public string AreaCode { get; set; }
-
-        /// <summary>
-        /// 搴斿嚭搴撴椂闂�
-        /// </summary>
-        [ImporterHeader(Name = "搴斿嚭搴撴椂闂�")]
-        [ExporterHeader(DisplayName = "搴斿嚭搴撴椂闂�")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "搴斿嚭搴撴椂闂�")]
-        public DateTime? OutboundTime { get; set; }
-
-        /// <summary>
-        /// 鍙傛暟淇℃伅
-        /// </summary>
-        [ImporterHeader(Name = "鍙傛暟淇℃伅")]
-        [ExporterHeader(DisplayName = "鍙傛暟淇℃伅")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "鍙傛暟淇℃伅", Length = int.MaxValue)]
-        public string ParameterInfos { get; set; }
-
-        /// <summary>
-        /// 搴撳瓨鐘舵��
-        /// </summary>
-        [ImporterHeader(Name = "搴撳瓨鐘舵��")]
-        [ExporterHeader(DisplayName = "搴撳瓨鐘舵��")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "搴撳瓨鐘舵��")]
-        public int StockStatus { get; set; }
-
-        /// <summary>
-        /// 褰撳墠宸ュ簭
-        /// </summary>
-        [ImporterHeader(Name = "褰撳墠宸ュ簭")]
-        [ExporterHeader(DisplayName = "褰撳墠宸ュ簭")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "褰撳墠宸ュ簭")]
-        public string ProcessCode { get; set; }
-
-        /// <summary>
-        /// 涓嬩竴宸ュ簭
-        /// </summary>
-        [ImporterHeader(Name = "涓嬩竴宸ュ簭")]
-        [ExporterHeader(DisplayName = "涓嬩竴宸ュ簭")]
-        [SugarColumn(IsNullable = true, ColumnDescription = "涓嬩竴宸ュ簭")]
-        public string NextProcessCode { get; set; }
-
-        /// <summary>
-        /// 搴撳瓨鏄庣粏
-        /// </summary>
-        [SugarColumn(ColumnName = "StockInfoDetails")]
-        [Navigate(NavigateType.OneToMany, nameof(DtStockInfoDetail_Hty.StockId))]
-        public List<DtStockInfoDetail_Hty>? StockInfoDetails { get; set; }
-
-        /// <summary>
-        /// 璐т綅鏁版嵁
-        /// </summary>
-        [SugarColumn(ColumnName = "LocationInfo")]
-        [Navigate(NavigateType.OneToOne, nameof(LocationId), nameof(DtLocationInfo.Id))]
-        public DtLocationInfo? LocationInfo { get; set; }
+        [ImporterHeader(Name = "绉诲叆鍘嗗彶鏃堕棿")]
+        [ExporterHeader(DisplayName = "绉诲叆鍘嗗彶鏃堕棿")]
+        [SugarColumn(IsNullable = false, ColumnDescription = "绉诲叆鍘嗗彶鏃堕棿")]
+        public DateTime InsertTime { get; set; }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3