From 836a3231be910fd3e11258e18cf389594ac9b420 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期一, 08 七月 2024 12:51:18 +0800
Subject: [PATCH] 处理人工出库空托

---
 代码管理/PCS/WCS_Server/WIDESEA_WCS/Common/equipment/Wheel_info_trace.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Common/equipment/Wheel_info_trace.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Common/equipment/Wheel_info_trace.cs"
index a1ab343..bd144c8 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Common/equipment/Wheel_info_trace.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Common/equipment/Wheel_info_trace.cs"
@@ -76,7 +76,7 @@
                         info.trace_status = "寰呭姞宸�";
                         info.trace_online_time = time;
                         info.trace_line_number = StackerDBItem.Name;
-                        var Work = workinfoRepository.Find(x => x.SN == info.trace_SN && x.processCode == "17").OrderByDescending(x => x.CreateTime).FirstOrDefault();
+                        var Work = workinfoRepository.Find(x => x.SN == info.trace_SN && (key.Key.Contains("4鍗曞厓") ? x.processCode == "28" : x.processCode == "17")).OrderByDescending(x => x.CreateTime).FirstOrDefault();
                         if (Work != null)
                         {
                             info.trace_workOrder = Work.workOrder;
@@ -87,6 +87,8 @@
                             info.trace_billetID = Work.billetID.ToString();
                         }
                         traceRepository.Add(info, true);
+
+
                         client.Write(key.FirstOrDefault(x => x.name == "oi_on").dbAddress, (byte)0);//淇″彿澶嶄綅
                     }
                     #endregion

--
Gitblit v1.9.3