From 0ac65b10a59bcca5b22bcf03086c8aaa36a8a525 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期四, 12 六月 2025 20:42:41 +0800
Subject: [PATCH] 1,签收送货单接口,添加签收人;2.来料检接口,添加到货时间字段

---
 StandardPda/MES.Service/service/WomcaaManager.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/StandardPda/MES.Service/service/WomcaaManager.cs b/StandardPda/MES.Service/service/WomcaaManager.cs
index 76e5a52..5e72408 100644
--- a/StandardPda/MES.Service/service/WomcaaManager.cs
+++ b/StandardPda/MES.Service/service/WomcaaManager.cs
@@ -130,6 +130,14 @@
         var single = base.GetSingle(it => it.Erpid == entity.Erpid);
         if (single != null) entity.Id = single.Id;
 
+        //Caa006 = dto.FMaterialId,
+        var mesLinkU9 = Db.Queryable<MesLinkU9>()
+            .Where(x => x.U9Id == dto.FMaterialId
+                        && x.OrgId == dto.FPrdOrgId
+                        && x.TableType == "MES_ITEMS").First();
+
+        if (mesLinkU9 != null) entity.Caa006 = mesLinkU9.MesId;
+
         return entity;
     }
 
@@ -206,6 +214,14 @@
                 .Where(s => s.Erpid == womcab.Erpid).Single();
             if (entity != null) womcab.Id = entity.Id;
 
+            //Cab003 = dto.FMaterialID
+            var mesLinkU9 = Db.Queryable<MesLinkU9>()
+                .Where(x => x.U9Id == dto.FMaterialID
+                            && x.OrgId == "1002011210000095"
+                            && x.TableType == "MES_ITEMS").First();
+
+            if (mesLinkU9 != null) womcab.Cab003 = mesLinkU9.MesId;
+
             womcabList.Add(womcab);
         }
 

--
Gitblit v1.9.3