From 2a5ca0e2e98e2556bd218cade91975830e55b781 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期一, 14 四月 2025 12:16:16 +0800
Subject: [PATCH] womcaa接口表更新
---
StandardPda/MESApplication/Controllers/QC/LljController.cs | 51 ++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 40 insertions(+), 11 deletions(-)
diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs
index e5df8ef..79a84b6 100644
--- a/StandardPda/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs
@@ -1,10 +1,10 @@
-锘縰sing 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 Newtonsoft.Json.Linq;
+using System.Dynamic;
namespace MESApplication.Controllers.QC;
@@ -45,14 +45,14 @@
try
{
dynamic resultInfos = new ExpandoObject();
- var tbBillList =
- new LljService().SetItems(itemNo, quantity, releaseNo);
- resultInfos.tbBillList = tbBillList;
+
+ string[] msg = new LljService().SetItems(itemNo, quantity, releaseNo);
+
return new ResponseResult
{
- status = 0,
- message = "OK",
- data = resultInfos
+ status = int.Parse(msg[0]),
+ message = msg[1],
+ data = msg[1]
};
}
catch (Exception ex)
@@ -274,7 +274,11 @@
}
}
- //IqcQaSubmit
+ /// <summary>
+ /// 鑾峰彇U9鍥剧焊鏁版嵁
+ /// </summary>
+ /// <param name="data"></param>
+ /// <returns></returns>
[HttpPost("GetFileUrlByU9List")]
public async Task<ResponseResult> GetFileUrlByU9List([FromBody] JObject data)
{
@@ -285,7 +289,7 @@
dynamic resultInfos = new ExpandoObject();
var lljService = new LljService();
var tbBillList = await lljService.GetFileUrlByU9List(type, itemID);
- if (tbBillList!=null)
+ if (tbBillList != null)
{
return new ResponseResult
{
@@ -303,7 +307,32 @@
data = ""
};
}
-
+
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+ /// <summary>
+ /// 瀹為獙瀹ら�佹鏁版嵁淇濆瓨
+ /// </summary>
+ /// <param name="sysSubmit">瀹為獙瀹ら�佹鏁版嵁</param>
+ /// <returns></returns>
+ [HttpPost("SaveSysSubmit")]
+ public ResponseResult SaveSysSubmit(SysSubmit sysSubmit)
+ {
+ try
+ {
+
+ string[] msg = new LljService().SaveSysSubmit(sysSubmit);
+
+ return new ResponseResult
+ {
+ status = int.Parse(msg[0]),
+ message = msg[1],
+ data = msg[1]
+ };
}
catch (Exception ex)
{
--
Gitblit v1.9.3