From d610083a5554baaf3af34f73b528c5022959ee77 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期三, 17 九月 2025 09:41:15 +0800
Subject: [PATCH] SJ穴模数

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

diff --git a/StandardInterface/MESApplication/Controllers/QC/SJController.cs b/StandardInterface/MESApplication/Controllers/QC/SJController.cs
index 7ad79b1..918e0d5 100644
--- a/StandardInterface/MESApplication/Controllers/QC/SJController.cs
+++ b/StandardInterface/MESApplication/Controllers/QC/SJController.cs
@@ -319,4 +319,56 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+
+    //鍒锋柊妫�楠岄」鐩�
+    [HttpPost("GenUpdate")]
+    public ResponseResult GenUpdate([FromBody] JObject data)
+    {
+        try
+        {
+            decimal? id = data["id"]?.ToObject<decimal>();
+            string? no = data["no"]?.ToString();
+            string? user = data["user"]?.ToString();
+            decimal? mnum = data["mnum"]?.ToObject<decimal?>();
+            string? dnum = data["dnum"]?.ToString();
+
+            var (result, message) = new SJService().GenUpdate(id, no, user, mnum, dnum);
+
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.result = result;
+            resultInfos.message = message;
+
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    //鎻愪氦妫�楠�
+    [HttpPost("SjSubmit")]
+    public ResponseResult SjSubmit([FromBody] SJDto sjDto)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList = new SJService().SjSubmit(sjDto);
+            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