From cabbae559dcce428781a3951ab42bf4a458fc66c Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期二, 29 七月 2025 18:48:26 +0800
Subject: [PATCH] 11

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

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 107d6b9..d830dda 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -57,17 +57,39 @@
         }
     }
 
+    [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 +341,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