From 7a783a92137f59a02041d71dcdc8bca7e5a3a0b4 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期四, 30 十月 2025 12:11:12 +0800
Subject: [PATCH] 优化首检巡检生成检验

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

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 49b536c..3a95d9e 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -8,6 +8,7 @@
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
 using Newtonsoft.Json.Linq;
+using SqlSugar.Extensions;
 
 namespace MESApplication.Controllers.QC;
 
@@ -87,6 +88,30 @@
         }
     }
 
+    [HttpPost("SavePlan")]
+    public ResponseResult SavePlan([FromBody] JObject data)
+    {
+        decimal pid = Convert.ToDecimal(data["pid"]);
+        string planName = data["planName"].ToString();
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var SJ = new SJService();
+            decimal res = SJ.SavePlan(pid, planName);
+            resultInfos.res = res;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
     [HttpPost("GetItemProj")]
     public ResponseResult GetItemProj([FromBody] JObject data)
     {

--
Gitblit v1.9.3