From f6598be8fdb51673c0a48ddeac8bd0e622835b35 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期三, 16 七月 2025 11:58:10 +0800 Subject: [PATCH] 111 --- MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 155 insertions(+), 0 deletions(-) diff --git a/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs b/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs index 58926ae..8aaca72 100644 --- a/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs +++ b/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs @@ -4,6 +4,7 @@ using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json.Linq; namespace MESApplication.Controllers.QC; @@ -13,6 +14,160 @@ { private readonly MesOqcItemsDetect02Manager m = new(); + //saveRemarksGid 涓昏〃娣诲姞涓嶅悎鏍兼弿杩� + [HttpPost("saveRemarksGid")] + public ResponseResult saveRemarksGid([FromBody] LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.saveRemarksGid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + //IqcQaSubmit + [HttpPost("IqcQaSubmit")] + public ResponseResult IqcQaSubmit(LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.IqcQaSubmit(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("saveRemarksPid")] + public ResponseResult saveRemarksPid([FromBody] LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.saveRemarksPid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("UpdateQSItemDetail")] + public ResponseResult UpdateQSItemDetail( + [FromBody] MesOqcItemsDetectDetail12 detail) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var detail021 = m.UpdateQSItemDetail(detail); + resultInfos.tbBillList = detail021; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("getXjDetail02ById")] + public ResponseResult getXjDetail02ById([FromBody] JObject data) + { + var id = data["id"]?.ToString(); + + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.getXjDetail02ById(Convert.ToDecimal(id)); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //ItemBarCodeSubmit(OQCDto dto) + [HttpPost("ItemBarCodeSubmit")] + public ResponseResult ItemBarCodeSubmit([FromBody] OQCDto dto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var item = m.ItemBarCodeSubmit(dto); + var tbBillList = + resultInfos.tbBillList = item; + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("GetDetail5")] + public ResponseResult GetDetail5([FromBody] OQCDto dto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var item = m.GetDetail5(dto); + var tbBillList = + resultInfos.tbBillList = item; + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + [HttpPost("getPage")] public ResponseResult getPage([FromBody] XJPageResult queryObj) { -- Gitblit v1.9.3