From cc88a464d5f1d8d9f00f4eae04f63ce54ecc077d Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 22 五月 2025 13:40:27 +0800
Subject: [PATCH] 钉钉接口修改

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

diff --git a/StandardInterface/MES.Service/service/WomcaaManager.cs b/StandardInterface/MES.Service/service/WomcaaManager.cs
index baacc02..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("鏇存柊澶辫触");
     }
@@ -237,6 +238,7 @@
                 Lot = dto.FLot,                               //鎵瑰彿
                 DepotCode = dto.FStockID,                     //浠撳簱
                 IssueType = dto.FIssueType,                   //鍙戞枡鏂瑰紡
+                Cab008 = dto.GY,            //宸ヨ壓
                 Cab009 = dto.FUnitID,                          //鍗曚綅
                 SupplyType = dto.FSupplyType,                  //渚涘簲绫诲瀷
                 Cab012 = Convert.ToDecimal(dto.FStdQty),        // 鏍囧噯鐢ㄩ噺
@@ -264,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