From b0e84ac95c285c8c552fe0bcda0806b10a81db34 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期四, 12 十二月 2024 10:07:30 +0800
Subject: [PATCH] 1

---
 MES.Service/service/WomcaaManager.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/MES.Service/service/WomcaaManager.cs b/MES.Service/service/WomcaaManager.cs
index 68d69f2..d681ae4 100644
--- a/MES.Service/service/WomcaaManager.cs
+++ b/MES.Service/service/WomcaaManager.cs
@@ -58,10 +58,11 @@
             db.Deleteable<Womcab>()
                 .Where(s => s.Pid == mesWomcaa.Erpid).ExecuteCommand();
 
-        //鎻掑叆蹇界暐绌哄瓧娈�
+        //鍗曟潯鎻掑叆蹇界暐绌哄瓧娈�
         var orUpdate = db.Insertable(mesWomcaa)
             .IgnoreColumns(true).ExecuteCommand() > 0;
 
+        //鎵归噺鎻掑叆蹇界暐绌哄瓧娈�
         var baOrUpdate = db.Insertable(mesWomcabs).PageSize(1)
             .IgnoreColumnsNull()
             .ExecuteCommand() > 0;
@@ -159,7 +160,7 @@
         {
             var womcab = new Womcab
             {
-                Erpid = Convert.ToInt32(dto.FENTRYID), /// ERPID 
+                Erpid = Convert.ToInt32(dto.Id), /// ERPID 
                 Cab001 = dto.FBillNo, /// 宸ュ崟鍗曞彿 
                 Cab002 = Convert.ToInt32(dto.FSeq), /// 搴忓彿 
                 Cab003 = dto.FMaterialID, /// 鏉愭枡缂栫爜 
@@ -206,7 +207,7 @@
             };
 
             var entity = Db.Queryable<Womcab>()
-                .Where(s => s.Erpid == womcab.Erpid).Single();
+                .Where(s => s.Eid == womcab.Eid).Single();
             if (entity != null) womcab.Guid = entity.Guid;
 
             womcabList.Add(womcab);

--
Gitblit v1.9.3