From fbbb2e3801dc7a1073d555278f92353d5c14ab86 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期一, 14 七月 2025 21:28:38 +0800
Subject: [PATCH] 最新代码

---
 MESApplication/Controllers/QC/SJController.cs |   72 ++++++++++++++++++++++++++++++++++-
 1 files changed, 69 insertions(+), 3 deletions(-)

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 107d6b9..dc666f1 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -56,18 +56,39 @@
             return ResponseResult.ResponseError(ex);
         }
     }
-
+    [HttpPost("getSearchPage")]
+    public ResponseResult getSearchPage([FromBody] SJPageResult queryObj)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList =
+                new SJService().getSearchPage(queryObj);
+            resultInfos.tbBillList = tbBillList;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
 
     //SetQSItems
     [HttpPost("SetQSItems")]
     public ResponseResult SetQSItems([FromBody] JObject data)
     {
-        var itemNo = data["itemNo"].ToString();
+        //var itemNo = data["itemNo"].ToString();
+        var itemId = Convert.ToDecimal(data["itemId"].ToString()); 
         try
         {
             dynamic resultInfos = new ExpandoObject();
             var tbBillList = new SJService();
-            var detail021 = tbBillList.SetQSItems(itemNo);
+            var detail021 = tbBillList.SetQSItems(itemId);
             resultInfos.tbBillList = detail021;
             return new ResponseResult
             {
@@ -319,4 +340,49 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+    
+    [HttpPost("SJQaSubmit")]
+    public ResponseResult SJQaSubmit([FromBody] QsItem item)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList = new SJService();
+            var detail021 = tbBillList.SJQaSubmit(item);
+            resultInfos.tbBillList = detail021;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    
+    //getWorkshop
+    [HttpPost("getWorkshop")]
+    public ResponseResult getWorkshop()
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList =
+                new SJService().getWorkshop();
+            resultInfos.tbBillList = tbBillList;
+            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