From e191eb959028eb2177497498e57205a3bdba5d9d Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期二, 20 五月 2025 09:38:36 +0800
Subject: [PATCH] 添加供协送货单接口列表route字段

---
 StandardInterface/MES.Service/service/WomcaaManager.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/StandardInterface/MES.Service/service/WomcaaManager.cs b/StandardInterface/MES.Service/service/WomcaaManager.cs
index c59443d..7a4d1ca 100644
--- a/StandardInterface/MES.Service/service/WomcaaManager.cs
+++ b/StandardInterface/MES.Service/service/WomcaaManager.cs
@@ -77,6 +77,7 @@
             .Deleteable<Womcab>().In(decimals)
             .ExecuteCommand() > 0;
 
+
         if (update && insertOrUpdate) return true;
         throw new NotImplementedException("鏇存柊澶辫触");
     }
@@ -265,8 +266,12 @@
 
             var entity = Db.Queryable<Womcab>()
                 .Where(s => s.Erpid == womcab.Erpid).Single();
-            if (entity != null) womcab.Id = entity.Id;
-
+            if (entity != null)
+            {
+                // 鍒犻櫎宸叉湁鐨� Erpid 鐩稿叧鐨� Womcab 鏁版嵁
+              //  Db.Deleteable<Womcab>().Where(s => s.Erpid == womcab.Erpid).ExecuteCommand();
+                womcab.Id = entity.Id;
+            }
             womcabList.Add(womcab);
         }
 

--
Gitblit v1.9.3