From 53abde480fbf44519f626a490d1ca04c0b8a8299 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期四, 19 九月 2024 14:17:22 +0800 Subject: [PATCH] aa --- MESApplication/Controllers/QC/LljController.cs | 49 ++++++++++++++++++++++++++++++++++++------------- 1 files changed, 36 insertions(+), 13 deletions(-) diff --git a/MESApplication/Controllers/QC/LljController.cs b/MESApplication/Controllers/QC/LljController.cs index e14f96f..4c8be4f 100644 --- a/MESApplication/Controllers/QC/LljController.cs +++ b/MESApplication/Controllers/QC/LljController.cs @@ -10,9 +10,8 @@ [Route("api/[controller]")] [ApiController] -public class LljController: ControllerBase +public class LljController : ControllerBase { - [HttpPost("getPage")] public ResponseResult getPage([FromBody] XJPageResult queryObj) { @@ -34,7 +33,7 @@ return ResponseResult.ResponseError(ex); } } - + [HttpPost("setJYItem")] public ResponseResult setJYItem([FromBody] JObject data) @@ -46,7 +45,7 @@ { dynamic resultInfos = new ExpandoObject(); var tbBillList = - new LljService().SetItems(itemNo, quantity,releaseNo); + new LljService().SetItems(itemNo, quantity, releaseNo); resultInfos.tbBillList = tbBillList; return new ResponseResult { @@ -60,7 +59,7 @@ return ResponseResult.ResponseError(ex); } } - + [HttpPost("saveItem")] public ResponseResult saveItem([FromBody] LLJDto lljDto) { @@ -82,12 +81,12 @@ return ResponseResult.ResponseError(ex); } } + //getItems [HttpPost("getJYItem")] public ResponseResult getJYItem([FromBody] JObject data) { - - var id = data["id"]?.ToString(); + var id = data["id"]?.ToString(); var releaseNo = data["releaseNo"]?.ToString(); try { @@ -108,7 +107,7 @@ return ResponseResult.ResponseError(ex); } } - + //getXjDetail02ById [HttpPost("getXjDetail02ById")] public ResponseResult getXjDetail02ById([FromBody] JObject data) @@ -134,9 +133,10 @@ } } - + [HttpPost("SetQSItemDetail")] - public ResponseResult SetQSItemDetail([FromBody] MesQaItemsDetectDetail12 detail) + public ResponseResult SetQSItemDetail( + [FromBody] MesQaItemsDetectDetail12 detail) { try { @@ -156,7 +156,7 @@ return ResponseResult.ResponseError(ex); } } - + [HttpPost("UpdateQSItemDetail")] public ResponseResult UpdateQSItemDetail( [FromBody] MesQaItemsDetectDetail12 detail) @@ -179,7 +179,7 @@ return ResponseResult.ResponseError(ex); } } - + //saveRemarksGid 涓昏〃娣诲姞涓嶅悎鏍兼弿杩� [HttpPost("saveRemarksGid")] public ResponseResult saveRemarksGid([FromBody] LLJDto rkjDto) @@ -202,6 +202,7 @@ return ResponseResult.ResponseError(ex); } } + //saveRemarksPid 瀛愯〃娣诲姞涓嶅悎鏍兼弿杩� [HttpPost("saveRemarksPid")] public ResponseResult saveRemarksPid([FromBody] LLJDto rkjDto) @@ -224,7 +225,7 @@ return ResponseResult.ResponseError(ex); } } - + //removeXJ 鍒犻櫎 [HttpPost("removeXJ")] public ResponseResult removeXJ([FromBody] JObject data) @@ -249,4 +250,26 @@ } } + //IqcQaSubmit + [HttpPost("IqcQaSubmit")] + public ResponseResult IqcQaSubmit(LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new LljService().IqcQaSubmit(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3