From 8276722de62e0be1e68adf65f150686a236268bd Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期五, 18 七月 2025 10:08:44 +0800
Subject: [PATCH] 产测接口代码提交

---
 StandardPda/MESApplication/Controllers/QC/LljController.cs |   91 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 88 insertions(+), 3 deletions(-)

diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs
index 3efd2dc..d3dcc89 100644
--- a/StandardPda/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs
@@ -1,12 +1,14 @@
-锘縰sing System.Data;
-using System.Dynamic;
-using MES.Service.Dto.service;
+锘縰sing MES.Service.Dto.service;
 using MES.Service.Modes;
 using MES.Service.service.QC;
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
+using Microsoft.EntityFrameworkCore.Metadata.Internal;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Linq;
+using System.Data;
+using System.Dynamic;
+using static System.Runtime.InteropServices.JavaScript.JSType;
 
 namespace MESApplication.Controllers.QC;
 
@@ -207,6 +209,15 @@
         var dt = JsonConvert.DeserializeObject<DataTable>(dataDt);
         try
         {
+            if (!dt.Columns.Contains("id"))
+            {
+                return new ResponseResult
+                {
+                    status = 1,
+                    message = "璇峰厛閫夋嫨鏁版嵁鍐嶄繚瀛橈紒",
+                    data = "璇峰厛閫夋嫨鏁版嵁鍐嶄繚瀛橈紒"
+                };
+            }
             new LljService().saveYzxBDlist(id, dt);
             var msg = new LljService().YzxImgVerify(id);
 
@@ -656,5 +667,79 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+    /// <summary>
+    ///     鎼哄浜戞敼鍠勬姤鍛婃柊澧�
+    /// </summary>
+    /// <param name="id"></param>
+    /// <returns></returns>
+    [HttpPost("SaveXkyImproveReport")]
+    public async Task<ResponseResult> SaveXkyImproveReport(string id)
+    {
+        try
+        { 
+            var msg = await new LljService().SaveXkyImproveReport(id);
+          
+                return new ResponseResult
+                {
+                    status = int.Parse(msg[0]),
+                    message = msg[1],
+                    data = msg[1]
+                };
+         
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    /// <summary>
+    ///     鎼哄浜戞敼鍠勬姤鍛婂鏍�
+    /// </summary>
+    /// <param name="id"></param>
+    /// <returns></returns>
+    [HttpPost("AuditXkyImproveReport")]
+    public async Task<ResponseResult> AuditXkyImproveReport(string id)
+    {
+        try
+        {
+            //string[] msg = new LljService().SaveSysSubmit(sysSubmit);
+            var msg = await new LljService().AuditXkyImproveReport(id);
+            return new ResponseResult
+            {
+                status = int.Parse(msg[0]),
+                message = msg[1],
+                data = msg[1]
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    /// <summary>
+    ///     鎵归噺鍒锋柊鏀瑰杽鎶ュ憡渚涘簲鍟嗘湭鍥炲鍗曟嵁
+    /// </summary>
+    /// <param name="id"></param>
+    /// <returns></returns>
+    [HttpPost("FlushedXkyImproveReport")]
+    public async Task<ResponseResult> FlushedXkyImproveReport(string id="")
+    {
+        try
+        {
+            //string[] msg = new LljService().SaveSysSubmit(sysSubmit);
+            var msg = await new LljService().FlushedXkyImproveReport(id);
+            return new ResponseResult
+            {
+                status = int.Parse(msg[0]),
+                message = msg[1],
+                data = msg[1]
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
 
 }
\ No newline at end of file

--
Gitblit v1.9.3