From a3a5db87cd11f10efd42eee49e7977c5360e1b55 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 06 八月 2025 15:11:51 +0800
Subject: [PATCH] 首检巡检,入库检验

---
 MESApplication/Controllers/QC/SJController.cs |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index b07b575..c1b5451 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -342,4 +342,45 @@
         }
     }
 
+    /// <summary>
+    /// 鏇存柊QsItemIpiItem鐨処sPass鍊�
+    /// </summary>
+    /// <param name="data">鍖呭惈id鍜宨sPass鐨凧SON瀵硅薄</param>
+    /// <returns>鏇存柊缁撴灉</returns>
+    [HttpPost("UpdateQsItemIpiItemIsPass")]
+    public ResponseResult UpdateQsItemIpiItemIsPass([FromBody] JObject data)
+    {
+        try
+        {
+            var id = data["id"]?.ToString();
+            var isPass = data["isPass"]?.ToString();
+
+            if (string.IsNullOrEmpty(id) || string.IsNullOrEmpty(isPass))
+            {
+                return new ResponseResult
+                {
+                    status = 1,
+                    message = "鍙傛暟涓嶈兘涓虹┖",
+                    data = null
+                };
+            }
+
+            dynamic resultInfos = new ExpandoObject();
+            var sjService = new SJService();
+            var result = sjService.UpdateQsItemIpiItemIsPass(Convert.ToDecimal(id), Convert.ToDecimal(isPass));
+            resultInfos.tbBillList = result;
+            
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.3