From 2923b57174c59c6b07e3ac7502c41fa60e32ae33 Mon Sep 17 00:00:00 2001
From: 如洲 陈 <1278080563@qq.com>
Date: 星期五, 09 五月 2025 17:49:20 +0800
Subject: [PATCH] 入库、首检、巡检

---
 MESApplication/Controllers/QC/XJController.cs |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/MESApplication/Controllers/QC/XJController.cs b/MESApplication/Controllers/QC/XJController.cs
index ef25d6b..6554635 100644
--- a/MESApplication/Controllers/QC/XJController.cs
+++ b/MESApplication/Controllers/QC/XJController.cs
@@ -4,6 +4,7 @@
 using MES.Service.service.QC;
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
+using Microsoft.Data.SqlClient.Server;
 using Newtonsoft.Json.Linq;
 
 namespace MESApplication.Controllers.QC;
@@ -164,12 +165,13 @@
     [HttpPost("setJYItem")]
     public ResponseResult setJYItem([FromBody] JObject data)
     {
-        var itemNo = data["itemNo"].ToString();
+        var itemId = Convert.ToDecimal(data["itemId"].ToString());
         try
         {
+
             dynamic resultInfos = new ExpandoObject();
             var tbBillList =
-                new XJService().setJYItem(itemNo);
+                new XJService().setJYItem(itemId);
             resultInfos.tbBillList = tbBillList;
             return new ResponseResult
             {
@@ -397,6 +399,29 @@
         }
     }
 
+
+    //saveCommentGid
+    [HttpPost("saveCommentGid")]
+    public ResponseResult saveCommentGid([FromBody] XJDto rkjDto)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList =
+                new XJService().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] XJDto rkjDto)

--
Gitblit v1.9.3