From 105ee9e867d29a322517888a9c3efb13f3e89961 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期日, 21 九月 2025 22:46:18 +0800
Subject: [PATCH] 1.接口逻辑调整

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

diff --git a/MES.Service/service/WomcaaManager.cs b/MES.Service/service/WomcaaManager.cs
index 062a5f3..3b03b4f 100644
--- a/MES.Service/service/WomcaaManager.cs
+++ b/MES.Service/service/WomcaaManager.cs
@@ -54,10 +54,10 @@
     private bool SaveOrUpdateData(SqlSugarScope db, Womcaa mesWomcaa,
         List<Womcab> mesWomcabs, string type)
     {
-        if(type == "3")
+        if(type == "3" || (mesWomcaa.DocumentStatus != null && mesWomcaa.DocumentStatus != "C"))
         {
             mesWomcaa.Typea = "3";  // 鏂板瀛楁璧嬪��
-            mesWomcaa.Caa001 = mesWomcaa.Caa001 + "F";
+            mesWomcaa.Caa001 = mesWomcaa.Caa001 + "F" + mesWomcaa.Erpid.ToString();
         }
 
 

--
Gitblit v1.9.3