From a1190b73462ad2cd7d3ff4a5d942d1435ac62031 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期四, 10 十月 2024 09:49:13 +0800
Subject: [PATCH] 优化工序逻辑

---
 Tiger.Business.MES/Common/WorkBatch.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Tiger.Business.MES/Common/WorkBatch.cs b/Tiger.Business.MES/Common/WorkBatch.cs
index 72c507a..56bef9a 100644
--- a/Tiger.Business.MES/Common/WorkBatch.cs
+++ b/Tiger.Business.MES/Common/WorkBatch.cs
@@ -248,7 +248,7 @@
         /// <returns></returns>
         public MES_WO_OPER GetNodeSetting(MES_WO_NODE node)
         {
-            return NodeSets.FirstOrDefault(q => q.NODE_ID == node.ID);
+            return NodeSets.FirstOrDefault(q => q.NODE_ID == node?.ID);
         }
 
         /// <summary>

--
Gitblit v1.9.3