From 08d4252c79d088d7bf97a08d314ec8577d96e2d2 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期六, 14 六月 2025 19:57:47 +0800
Subject: [PATCH] 火警

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs |   68 ++++++++++++++++-----------------
 1 files changed, 33 insertions(+), 35 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
index 5059039..8cfd6d0 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -636,7 +636,6 @@
             case (int)TaskOutboundTypeEnum.OutTray:
             case (int)TaskOutboundTypeEnum.Outbound:
             case (int)TaskOutboundTypeEnum.OutNG:
-            case (int)TaskOutboundTypeEnum.OutQuality:
             
                 LogFactory.GetLog("浠诲姟瀹屾垚").InfoFormat(true, "鍑哄簱浠诲姟", "");
                 return await CompleteStackTaskAsync(task, stock);
@@ -905,8 +904,8 @@
 
     // 鑾峰彇缁勭洏淇℃伅
     private DtBoxingInfo CreateBoxingInfo(ResultTrayCellsStatus result, string palletCode)
-    {
-        var boxing=_boxingInfoRepository.QueryFirst(x=>x.PalletCode== palletCode);
+    {  
+         var boxing=_boxingInfoRepository.QueryFirst(x=>x.PalletCode == palletCode);
         if (boxing == null)
         {
             return new DtBoxingInfo
@@ -925,8 +924,7 @@
                 }).ToList()
             };
         }
-        else
-        {
+        else { 
             _boxingInfoRepository.DeleteData(boxing);
             return new DtBoxingInfo
             {
@@ -934,16 +932,17 @@
                 IsFull = true,
                 ProcessCode = result.ProcessCode,
                 ProductionLine = result.ProductionLine,
-                BoxingInfoDetails = result.SerialNos.Select(serialNoObj => new DtBoxingInfoDetail
+                BoxingInfoDetails = result.SerialNos.Select(seriaINoObj => new DtBoxingInfoDetail
                 {
-                    SerialNumber = serialNoObj.SerialNo,
-                    OrderNo = serialNoObj.PositionNo.ToString(),
-                    Status = serialNoObj.SerialNoStatus,
+                    SerialNumber = seriaINoObj.SerialNo,
+                    OrderNo = seriaINoObj.PositionNo.ToString(),
+                    Status = seriaINoObj.SerialNoStatus,
                     MaterielCode = result.BindCode,
                     Remark = result.TrayBarcodePropertys.ToJsonString(),
                 }).ToList()
             };
         }
+       
     }
 
     // 鑾峰彇宸ヨ壓鐢宠
@@ -981,7 +980,6 @@
             DtStockInfo stockInfo = tag == (int)TaskOutboundTypeEnum.Outbound
                 ? areaCode != "CWSC1" ? await QueryStockInfoForRealTrayAsync(areaCode, areaCodes, productionLine) : await QueryStockInfoForRealTrayCWAsync(areaCodes, productionLine)
                 : await QueryStockInfoForEmptyTrayAsync(areaCode, position);
-
             if (stockInfo == null)
             {
                 return content.Error("搴撳瓨淇℃伅涓嶅瓨鍦�");
@@ -1314,7 +1312,7 @@
                 }
                 else
                 {
-                    task = CreateTask(stockInfo, "1049-1", taskType);
+                    task = CreateTask(stockInfo, "1049-8", taskType);
                 }
                 
             }
@@ -1945,32 +1943,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
 
             // 娣诲姞鍘嗗彶浠诲姟

--
Gitblit v1.9.3