From 7a71a5eb9b9fb675845b639fe79676a2667a5b62 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期一, 15 九月 2025 11:32:40 +0800
Subject: [PATCH] 代码提交

---
 StandardPda/MES.Service/service/BasicData/MesRohInManager.cs |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs b/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs
index bc45c4b..35bfa2a 100644
--- a/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs
+++ b/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs
@@ -95,7 +95,18 @@
         var mesRohIn = new MesRohIn();
 
         var single = base.GetSingle(it => it.EbelnK3id == eid);
-        if (single != null) mesRohIn.Id = single.Id;
+        if (single != null) { 
+            mesRohIn.Id = single.Id; 
+
+            if(single.CheckDate != null)
+            {
+                mesRohIn.CheckDate = single.CheckDate;
+            }
+            else
+            {
+                mesRohIn.CheckDate = DateTime.Now;
+            }
+        }
 
         var mesLinkU9 = Db.Queryable<MesLinkU9>()
             .Where(s => s.U9Id == rohIn.FSupplierId

--
Gitblit v1.9.3