From cee4e362c81af4c93c87f40e77649e9af5a591c6 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期一, 02 六月 2025 20:05:54 +0800
Subject: [PATCH] 修改工单生产数量更新的逻辑,现在只有检验合格的才更新生产数量,清除检验合格的结果也会更新

---
 MESApplication/Controllers/WomcaaController.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/MESApplication/Controllers/WomcaaController.cs b/MESApplication/Controllers/WomcaaController.cs
index 50c2651..579cf20 100644
--- a/MESApplication/Controllers/WomcaaController.cs
+++ b/MESApplication/Controllers/WomcaaController.cs
@@ -40,9 +40,13 @@
             resultInfos.tbBillList = save;
 
             entity.Result = 0;
-            if (save) entity.Result = 1;
+            entity.DealWith = 0;
+            if (save)
+            {
+                entity.Result = 1;
+                entity.DealWith = 1;
+            }
 
-            entity.DealWith = 1;
             _manager.save(entity);
 
             return new ResponseResult

--
Gitblit v1.9.3