From d7f491034ae9694741178f17f809143f48470520 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期四, 27 十一月 2025 13:12:19 +0800
Subject: [PATCH] 钉钉人员接口、检验撤回单据、首检保存备注

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

diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index 49b536c..1461b4d 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -4,10 +4,13 @@
 using MES.Service.Dto.service;
 using MES.Service.Modes;
 using MES.Service.Modes.DingAPI;
+using MES.Service.service.ProductionOrder;
 using MES.Service.service.QC;
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
 using Newtonsoft.Json.Linq;
+using SharpCompress.Common;
+using SqlSugar.Extensions;
 
 namespace MESApplication.Controllers.QC;
 
@@ -74,6 +77,39 @@
             var tbBillList = new SJService();
             var detail021 = tbBillList.SetQSItems(itemNo, planName);
             resultInfos.tbBillList = detail021;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    [HttpPost("SavePlan")]
+    public ResponseResult SavePlan([FromBody] JObject data)
+    {
+        if (string.IsNullOrEmpty(data["pid"]?.ToString()))
+        {
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                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,
@@ -432,6 +468,29 @@
         }
     }
 
+    //saveCommentGid
+    [HttpPost("saveCommentGid")]
+    public ResponseResult saveCommentGid([FromBody] QsItem rkjDto)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList =
+                new SJService().saveCommentGid(rkjDto);
+            resultInfos.tbBillList = tbBillList;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
     //saveRemarksPid
     [HttpPost("saveRemarksPid")]
     public ResponseResult saveRemarksPid([FromBody] QsItem rkjDto)
@@ -548,6 +607,31 @@
     }
 
     /// <summary>
+    /// 鎾ゅ洖棣栨
+    /// </summary>
+    [HttpPost("SJQaReSubmit")]
+    public ResponseResult SJQaReSubmit([FromBody] QsItem item)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList = new SJService();
+            var detail021 = tbBillList.SJQaReSubmit(item);
+            resultInfos.tbBillList = detail021;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    /// <summary>
     /// 鏇存柊QsItemIpiItem鐨処sPass鍊�
     /// </summary>
     /// <param name="data">鍖呭惈id鍜宨sPass鐨凧SON瀵硅薄</param>

--
Gitblit v1.9.3