From 4758d6873110195be6df2840b20fc5c8ca85d240 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期一, 12 五月 2025 10:14:04 +0800
Subject: [PATCH] 一致性代码提交
---
StandardPda/MESApplication/Controllers/QC/LljController.cs | 82 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 82 insertions(+), 0 deletions(-)
diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs
index 7f9a583..be983b3 100644
--- a/StandardPda/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs
@@ -4,7 +4,9 @@
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
using NetTaste;
+using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
+using System.Data;
using System.Dynamic;
namespace MESApplication.Controllers.QC;
@@ -138,6 +140,64 @@
return ResponseResult.ResponseError(ex);
}
}
+
+ /// <summary>
+ /// 鑾峰彇涓�鑷存�ф牳瀵归」鐩�
+ /// </summary>
+ /// <param name="data"></param>
+ /// <returns></returns>
+ [HttpPost("getYzxItem")]
+ public ResponseResult getYzxItem([FromBody] JObject data)
+ {
+
+ var id = data["id"]?.ToString();
+ var releaseNo = data["releaseNo"]?.ToString();
+ try
+ {
+ var tbBillList =new LljService().getYzxBDlist(id);
+
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = tbBillList
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ /// <summary>
+ /// 淇濆瓨涓�鑷存�ф牳瀵归」鐩�
+ /// </summary>
+ /// <param name="data"></param>
+ /// <returns></returns>
+ [HttpPost("saveYzxItem")]
+ public ResponseResult saveYzxItem([FromBody] JObject data)
+ {
+
+ var id = data["id"]?.ToString();
+ var dataDt = data["data"]?.ToString();
+ DataTable dt = JsonConvert.DeserializeObject<DataTable>(dataDt);
+ try
+ {
+ new LljService().saveYzxBDlist(id, dt);
+
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = "ok"
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
/// <summary>
/// 鑾峰彇鎵�鏈夋楠屽憳淇℃伅
/// </summary>
@@ -358,6 +418,28 @@
return ResponseResult.ResponseError(ex);
}
}
+ //IqcQaSubmit
+ [HttpPost("getImgBDlist")]
+ public ResponseResult getImgBDlist([FromBody] JObject data)
+ {
+ try
+ {
+ var id = data["id"]?.ToString();
+
+ var db = new LljService().getImgBDlist(id);
+
+ return new ResponseResult
+ {
+ status = int.Parse("0"),
+ message = "OK",
+ data = db
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
/// <summary>
/// 鑾峰彇U9鍥剧焊鏁版嵁
--
Gitblit v1.9.3