From 97a73035e8391fb60cdb26c00f7ff8b05296c68c Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期五, 07 三月 2025 15:12:22 +0800
Subject: [PATCH] 获取料号图纸接口代码完整提交
---
StandardPda/MESApplication/Controllers/QC/LljController.cs | 40 +++++++++++++++++++++++++---------------
1 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs
index f4c58c0..e5df8ef 100644
--- a/StandardPda/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs
@@ -273,27 +273,37 @@
return ResponseResult.ResponseError(ex);
}
}
+
//IqcQaSubmit
[HttpPost("GetFileUrlByU9List")]
- public ResponseResult GetFileUrlByU9List(LLJDto rkjDto)
+ public async Task<ResponseResult> GetFileUrlByU9List([FromBody] JObject data)
{
try
{
- //dynamic resultInfos = new ExpandoObject();
- //var tbBillList =
- // new LljService().IqcQaSubmit(rkjDto);
- //resultInfos.tbBillList = tbBillList;
- string[] fileUrls =
- {
- "https://new-service.oss-cn-hangzhou.aliyuncs.com/sheet-attachment/1728624575152_ty5VSi9R.png",
- "https://new-service.oss-cn-hangzhou.aliyuncs.com/sheet-attachment/1728624610583_EwIN55BL.pdf"
-};
- return new ResponseResult
+ var type = data["type"]?.ToString();
+ var itemID = data["u9No"]?.ToString();
+ dynamic resultInfos = new ExpandoObject();
+ var lljService = new LljService();
+ var tbBillList = await lljService.GetFileUrlByU9List(type, itemID);
+ if (tbBillList!=null)
{
- status = 0,
- message = "OK",
- data = fileUrls
- };
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = tbBillList
+ };
+ }
+ else
+ {
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = ""
+ };
+ }
+
}
catch (Exception ex)
{
--
Gitblit v1.9.3