From 93473e2792e5d23a168e575f17190a5e51ad7c9f Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期四, 17 七月 2025 09:55:58 +0800
Subject: [PATCH] 111

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

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index ed0a331..d830dda 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -57,13 +57,34 @@
         }
     }
 
+    [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 itemId = Convert.ToDecimal(data["itemId"].ToString()); 
+        var itemId = Convert.ToDecimal(data["itemId"].ToString());
         try
         {
             dynamic resultInfos = new ExpandoObject();
@@ -320,7 +341,7 @@
             return ResponseResult.ResponseError(ex);
         }
     }
-    
+
     [HttpPost("SJQaSubmit")]
     public ResponseResult SJQaSubmit([FromBody] QsItem item)
     {
@@ -342,4 +363,27 @@
             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