From 0cff826ea489a1faa5cbb320cad52d102530a9e0 Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期四, 13 三月 2025 10:53:42 +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