From cf877c780cb964b8b1d8eefec521c46d76130836 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期一, 30 六月 2025 14:37:44 +0800
Subject: [PATCH] 更新超时信息相关接口和服务 - 修改 `Dt_OutTime.vue` 中的 `url` 字段。 - 更新 `AssemblyInformationalVersion` 属性值。 - 新增 `IStockInfoTimeoutRepository` 和 `IStockInfoTimeoutService` 接口。 - 实现 `StockInfoTimeoutRepository` 和 `StockInfoTimeoutService` 类。 - 在 `Dt_TaskService.cs` 中添加必要的 `using` 语句。 - 新增 `StockInfoTimeoutController` 控制器。

---
 CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs |   54 +++++++++++++++++++++++++++++-------------------------
 1 files changed, 29 insertions(+), 25 deletions(-)

diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
index 05a4a49..7095436 100644
--- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
+++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -2,6 +2,7 @@
 using Masuit.Tools;
 using SixLabors.Fonts.Tables.AdvancedTypographic;
 using SqlSugar;
+using System.Linq.Expressions;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;
 using WIDESEA_Cache;
@@ -2155,32 +2156,32 @@
             }
 
             #region 鏇存柊搴撳瓨淇℃伅锛堟殏鏃朵笉闇�瑕侊級
-            if (stock.IsFull)
-            {
-                // 鏌ヨ绗﹀悎鏉′欢鐨勫簱瀛樹俊鎭�
-                var stocks = _stockInfoRepository.QueryData(x => x.AreaCode == stock.AreaCode && x.ProductionLine == stock.ProductionLine && x.SpecialParameterDuration != stock.SpecialParameterDuration);
+            //if (stock.IsFull)
+            //{
+            //    // 鏌ヨ绗﹀悎鏉′欢鐨勫簱瀛樹俊鎭�
+            //    var stocks = _stockInfoRepository.QueryData(x => x.AreaCode == stock.AreaCode && x.ProductionLine == stock.ProductionLine && x.SpecialParameterDuration != stock.SpecialParameterDuration);
 
-                // 鏌ヨ浠诲姟淇℃伅
-                var tasks = BaseDal.QueryData(x => x.PalletCode != stock.PalletCode && x.ProductionLine == stock.ProductionLine).Select(x => x.PalletCode).ToList();
+            //    // 鏌ヨ浠诲姟淇℃伅
+            //    var tasks = BaseDal.QueryData(x => x.PalletCode != stock.PalletCode && x.ProductionLine == stock.ProductionLine).Select(x => x.PalletCode).ToList();
 
-                if (stocks != null && stocks.Count > 0)
-                {
-                    // 杩囨护鍑洪渶瑕佹洿鏂扮殑搴撳瓨淇℃伅
-                    var stocksToUpdate = stocks.Where(item => !tasks.Contains(item.PalletCode)).ToList();
-                    foreach (var item in stocksToUpdate)
-                    {
-                        // 鏇存柊搴撳瓨淇℃伅鐨勭壒瀹氬弬鏁�
-                        item.SpecialParameterDuration = stock.SpecialParameterDuration;
-                        item.ParameterInfos = stock.ParameterInfos;
-                        item.OutboundTime = Convert.ToDateTime(item.LinedProcessFeedbackTime == null ? item.CreateDate : item.LinedProcessFeedbackTime).AddHours(Convert.ToDouble(stock.SpecialParameterDuration));
-                    }
-                    if (stocksToUpdate.Count > 0)
-                    {
-                        // 寮傛鏇存柊搴撳瓨淇℃伅
-                        var isUpdates = await _stockInfoRepository.UpdateDataAsync(stocksToUpdate);
-                    }
-                }
-            }
+            //    if (stocks != null && stocks.Count > 0)
+            //    {
+            //        // 杩囨护鍑洪渶瑕佹洿鏂扮殑搴撳瓨淇℃伅
+            //        var stocksToUpdate = stocks.Where(item => !tasks.Contains(item.PalletCode)).ToList();
+            //        foreach (var item in stocksToUpdate)
+            //        {
+            //            // 鏇存柊搴撳瓨淇℃伅鐨勭壒瀹氬弬鏁�
+            //            item.SpecialParameterDuration = stock.SpecialParameterDuration;
+            //            item.ParameterInfos = stock.ParameterInfos;
+            //            item.OutboundTime = Convert.ToDateTime(item.LinedProcessFeedbackTime == null ? item.CreateDate : item.LinedProcessFeedbackTime).AddHours(Convert.ToDouble(stock.SpecialParameterDuration));
+            //        }
+            //        if (stocksToUpdate.Count > 0)
+            //        {
+            //            // 寮傛鏇存柊搴撳瓨淇℃伅
+            //            var isUpdates = await _stockInfoRepository.UpdateDataAsync(stocksToUpdate);
+            //        }
+            //    }
+            //}
             #endregion
 
             // 娣诲姞鍘嗗彶浠诲姟
@@ -2355,7 +2356,10 @@
             ToAddress = await GetRoadWayAsync(process);
         else
             ToAddress = process[0];
-
+        if (string.IsNullOrEmpty(ToAddress))
+        {
+            return content.Error("鏃犳硶鑾峰彇鐩爣鍦板潃");
+        }
         // 鍒涘缓鏂颁换鍔″疄渚�
         var task = new Dt_Task
         {

--
Gitblit v1.9.3