From b646b9bee3991eb91fb916a290e5efb33eb5f68c Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期五, 18 四月 2025 19:13:40 +0800 Subject: [PATCH] 代码提交 --- StandardPda/MESApplication/Controllers/QC/LljController.cs | 101 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 92 insertions(+), 9 deletions(-) diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs index 5e1b71e..19f3217 100644 --- a/StandardPda/MESApplication/Controllers/QC/LljController.cs +++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs @@ -3,6 +3,7 @@ using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; +using NetTaste; using Newtonsoft.Json.Linq; using System.Dynamic; @@ -45,8 +46,8 @@ try { dynamic resultInfos = new ExpandoObject(); - - string[] msg= new LljService().SetItems(itemNo, quantity, releaseNo); + + string[] msg = new LljService().SetItems(itemNo, quantity, releaseNo); return new ResponseResult { @@ -83,6 +84,35 @@ } } + + [HttpPost("SaveCheckBy")] + public ResponseResult SaveCheckBy([FromBody] JObject data) + { + try + { + var NewStaffName = data["NewStaffName"].ToString(); + var userID = data["userID"].ToString(); + var releaseNo = data["releaseNo"].ToString(); + var NewStaffUserID = data["NewStaffUserID"].ToString(); + + string[] msg = new LljService().SaveCheckBy(NewStaffUserID, userID, releaseNo); + + + + return new ResponseResult + { + status = int.Parse(msg[0]), + message = msg[1], + data = msg[1] + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //getItems [HttpPost("getJYItem")] public ResponseResult getJYItem([FromBody] JObject data) @@ -108,6 +138,31 @@ return ResponseResult.ResponseError(ex); } } + /// <summary> + /// 鑾峰彇鎵�鏈夋楠屽憳淇℃伅 + /// </summary> + /// <param name="data"></param> + /// <returns></returns> + [HttpPost("getAllInspectors")] + public ResponseResult getAllInspectors([FromBody] JObject data) + { + + try + { + var tbBillList = new LljService().getAllInspectors(); + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + //getXjDetail02ById [HttpPost("getXjDetail02ById")] @@ -258,14 +313,13 @@ try { dynamic resultInfos = new ExpandoObject(); - var tbBillList = - new LljService().IqcQaSubmit(rkjDto); - resultInfos.tbBillList = tbBillList; + var msg = new LljService().IqcQaSubmit(rkjDto); + 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 +328,11 @@ } } - //IqcQaSubmit + /// <summary> + /// 鑾峰彇U9鍥剧焊鏁版嵁 + /// </summary> + /// <param name="data"></param> + /// <returns></returns> [HttpPost("GetFileUrlByU9List")] public async Task<ResponseResult> GetFileUrlByU9List([FromBody] JObject data) { @@ -310,4 +368,29 @@ 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) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3